aboutsummaryrefslogtreecommitdiff
path: root/nerv.lua
diff options
context:
space:
mode:
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