diff options
Diffstat (limited to 'nerv.lua')
-rw-r--r-- | nerv.lua | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |