From 0f8028b68116c05dc0452cce74015b220525cf3c Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 25 Apr 2017 18:36:02 +1000 Subject: lauxlib: Add LUA_FILEHANDLE --- src/lauxlib.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2