aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-25 18:36:02 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 21:27:35 +1000
commit0f8028b68116c05dc0452cce74015b220525cf3c (patch)
tree4666899daadf3d5af55de0fc6991b47826c2d79f /src
parent3520279e41cf63131eb7cc4e1647d151feb1c49a (diff)
downloadfengari-0f8028b68116c05dc0452cce74015b220525cf3c.tar.gz
fengari-0f8028b68116c05dc0452cce74015b220525cf3c.tar.bz2
fengari-0f8028b68116c05dc0452cce74015b220525cf3c.zip
lauxlib: Add LUA_FILEHANDLE
Diffstat (limited to 'src')
-rw-r--r--src/lauxlib.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index 7407479..1df04f0 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -7,6 +7,8 @@ const lobject = require('./lobject.js');
const LUA_LOADED_TABLE = "_LOADED";
+const LUA_FILEHANDLE = lua.to_luastring("FILE*", true);
+
class luaL_Buffer {
constructor(L) {
@@ -675,6 +677,7 @@ const lua_writestringerror = function(s) {
};
module.exports.LUA_LOADED_TABLE = LUA_LOADED_TABLE;
+module.exports.LUA_FILEHANDLE = LUA_FILEHANDLE;
module.exports.luaL_Buffer = luaL_Buffer;
module.exports.luaL_addchar = luaL_addchar;
module.exports.luaL_addlstring = luaL_addlstring;