diff options
author | chai <chaifix@163.com> | 2019-09-13 15:08:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-09-13 15:08:43 +0800 |
commit | 20535cb86266d7a4828009f3ddca42e35269b9e2 (patch) | |
tree | 796e77e4a34ed52b6c92fb58ec432c69ed4232e1 /src/3rdparty/luax/luax.h | |
parent | 695eadc9d2a6d2f499b24ee6858325f6e22da077 (diff) |
*格式化代码
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. } |