diff options
author | chai <chaifix@163.com> | 2018-12-17 08:41:21 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-17 08:41:21 +0800 |
commit | 411aa74df2eb259bbe6bd74ca0301fc7c549a164 (patch) | |
tree | d5491bc9181dc18c92b318b288a4ff7aa8d6f0dc /src | |
parent | 870fcdae66edc680cac55defb149e1434e865f37 (diff) |
*luax
Diffstat (limited to 'src')
-rw-r--r-- | src/3rdparty/luax/luax.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/luax/luax.h b/src/3rdparty/luax/luax.h index 0055176..aac9ee4 100644 --- a/src/3rdparty/luax/luax.h +++ b/src/3rdparty/luax/luax.h @@ -230,14 +230,14 @@ inline void luax_newtype(lua_State* L, const char* tname, const luaL_Reg* f) lua_pushvalue(L, -1); lua_setfield(L, -2, "__index"); - if (f != 0) - luaL_register(L, 0, f); + if (f != NULL) + luaL_register(L, NULL, f); lua_pop(L, 1); // Pops metatable. } /** -* Instance of a type. +* Instantiate of a type. */ inline void* luax_newinstance(lua_State* L, const char* tname, int size) { |