diff options
Diffstat (limited to 'src/lua.h')
| -rw-r--r-- | src/lua.h | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -1,21 +1,21 @@ -#include <lua.h> -#include <lualib.h> -#include <lauxlib.h> - - -#if LUA_VERSION_NUM == 504 - #define lreg(N, FN)\ - lua_pushstring(L, N);\ - luaL_register(L, NULL, FN);\ - lua_settable(L, -3); - - #define lua_objlen(L,i) lua_rawlen(L,(i)) - #define luaL_register(L, M, F) luaL_newlib(L, F); -#else - #define lreg(N, FN)\ - lua_newtable(L);\ - luaL_register(L, NULL, FN);\ - lua_setfield(L, 2, N); -#endif - - +#include <lua.h>
+#include <lualib.h>
+#include <lauxlib.h>
+
+
+#if LUA_VERSION_NUM == 504
+ #define lreg(N, FN)\
+ lua_pushstring(L, N);\
+ luaL_register(L, NULL, FN);\
+ lua_settable(L, -3);
+
+ #define lua_objlen(L,i) lua_rawlen(L,(i))
+ #define luaL_register(L, M, F) luaL_newlib(L, F);
+#else
+ #define lreg(N, FN)\
+ lua_newtable(L);\
+ luaL_register(L, NULL, FN);\
+ lua_setfield(L, 2, N);
+#endif
+
+
|
