summaryrefslogtreecommitdiff
path: root/src/lua.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-20 14:57:49 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-02-20 21:37:27 +0100
commit7d58c3b7314e4a63591fa375546cfc76a042e644 (patch)
treec51d390ee3830f924b2fb1e289b9461c8310d625 /src/lua.js
parent5860ec2bde3b220eff01b3bd1462e60905ef2fe9 (diff)
downloadfengari-7d58c3b7314e4a63591fa375546cfc76a042e644.tar.gz
fengari-7d58c3b7314e4a63591fa375546cfc76a042e644.tar.bz2
fengari-7d58c3b7314e4a63591fa375546cfc76a042e644.zip
ldebug, lua_error, error
Diffstat (limited to 'src/lua.js')
-rw-r--r--src/lua.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/lua.js b/src/lua.js
index 6ebf250..358be64 100644
--- a/src/lua.js
+++ b/src/lua.js
@@ -80,6 +80,29 @@ const print_version = function() {
console.log(FENGARI_COPYRIGHT);
};
+class lua_Debug {
+
+ constructor() {
+ // int event;
+ // const char *name; /* (n) */
+ // const char *namewhat; /* (n) 'global', 'local', 'field', 'method' */
+ // const char *what; /* (S) 'Lua', 'C', 'main', 'tail' */
+ // const char *source; /* (S) */
+ // int currentline; /* (l) */
+ // int linedefined; /* (S) */
+ // int lastlinedefined; /* (S) */
+ // unsigned char nups; /* (u) number of upvalues */
+ // unsigned char nparams;/* (u) number of parameters */
+ // char isvararg; /* (u) */
+ // char istailcall; /* (t) */
+ // char short_src[LUA_IDSIZE]; /* (S) */
+ /* private part */
+ // struct CallInfo *i_ci; /* active function */
+ }
+
+}
+
+module.exports.lua_Debug = lua_Debug;
module.exports.constant_types = constant_types;
module.exports.thread_status = thread_status;
module.exports.LUA_MULTRET = -1;