diff options
Diffstat (limited to 'src/3rdparty/luax/luax.h')
-rw-r--r-- | src/3rdparty/luax/luax.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/3rdparty/luax/luax.h b/src/3rdparty/luax/luax.h index 08411f9..7218e3a 100644 --- a/src/3rdparty/luax/luax.h +++ b/src/3rdparty/luax/luax.h @@ -136,6 +136,8 @@ inline void luax_errorf(lua_State* L, const char* fmt, ...) #define luax_pushnil lua_pushnil #define luax_pushvalue lua_pushvalue #define luax_pushliteral lua_pushliteral +#define luax_pushcfunction lua_pushcfunction //lua_pushcclosure(L, (f), 0) +#define luax_pushcclosure lua_pushcclosure #define luax_setmetatable lua_setmetatable @@ -244,7 +246,7 @@ inline void luax_newtype(lua_State* L, const char* tname, const luaL_Reg* f) if (f != NULL) luaL_register(L, NULL, f); - + lua_pop(L, 1); // Pops metatable. } |