diff options
Diffstat (limited to 'src/lua/libraries/luax/luax.h')
-rw-r--r-- | src/lua/libraries/luax/luax.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lua/libraries/luax/luax.h b/src/lua/libraries/luax/luax.h index 8a01a05..450805b 100644 --- a/src/lua/libraries/luax/luax.h +++ b/src/lua/libraries/luax/luax.h @@ -40,8 +40,8 @@ #define luax_pcall lua_pcall #define luax_setglobal lua_setglobal #define luax_setglobali(L, i, name)\ -lua_pushvalue(L, i);\ -lua_setglobal(L, name); + lua_pushvalue(L, i);\ + lua_setglobal(L, name); #define luax_pop lua_pop #define luax_newtable lua_newtable #define luax_getglobal lua_getglobal @@ -90,6 +90,8 @@ inline bool luax_checkbool(lua_State *L, int numArg) /* get value and leaves it on top of stack */ #define luax_rawgetnumber(L, i, k) (lua_rawgeti(L,i, k), lua_tonumber(L, -1)) +#define luax_rawgeti lua_rawgeti + /** * */ @@ -111,6 +113,7 @@ inline bool luax_checkbool(lua_State *L, int numArg) #define luax_pushboolean lua_pushboolean #define luax_pushlightuserdata lua_pushlightuserdata #define luax_pushnil lua_pushnil +#define luax_pushvalue lua_pushvalue //inline void luax_pushuserdata(lua_State* L, void* p) //{ @@ -168,6 +171,10 @@ inline char luax_getfieldbool(lua_State* L, int I, const char* N) char bin = lua_toboolean(L, -1); return bin; } +/** +* +*/ +#define luax_call lua_call /** * Set raw |