diff options
author | Determinant <[email protected]> | 2015-05-24 15:39:24 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-24 15:39:24 +0800 |
commit | e21e2d9480c83fee13b2e721417cc04fe8036ced (patch) | |
tree | c45e19379badce0815bdbdbd58bc8df27cc5da7d /nerv.lua | |
parent | 0e250c43b62b7593edc163d0510d229010361707 (diff) |
add param file implementation
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 |