From 411aa74df2eb259bbe6bd74ca0301fc7c549a164 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 17 Dec 2018 08:41:21 +0800 Subject: *luax --- src/3rdparty/luax/luax.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) { -- cgit v1.1-26-g67d0