aboutsummaryrefslogtreecommitdiff
path: root/nerv.lua
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-24 15:39:24 +0800
committerDeterminant <[email protected]>2015-05-24 15:39:24 +0800
commite21e2d9480c83fee13b2e721417cc04fe8036ced (patch)
treec45e19379badce0815bdbdbd58bc8df27cc5da7d /nerv.lua
parent0e250c43b62b7593edc163d0510d229010361707 (diff)
add param file implementation
Diffstat (limited to 'nerv.lua')
-rw-r--r--nerv.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/nerv.lua b/nerv.lua
index de2e701..ccff0a0 100644
--- a/nerv.lua
+++ b/nerv.lua
@@ -1,3 +1,12 @@
require 'libnerv'
require 'matrix.init'
-nerv.class = require 'class'
+nerv.class = require 'pl.class'
+nerv.utils = require 'pl.utils'
+
+function nerv.error(fmt, ...)
+ error(nerv.utils.printf("Nerv internal error: " .. fmt, ...))
+end
+
+function nerv.error_method_not_implement()
+ nerv.error("method not implemented");
+end