diff options
| author | ame <[email protected]> | 2024-01-29 09:54:16 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-01-29 09:54:16 -0600 |
| commit | 79a85fd80a6e1af15e7d9b5ee96d3d77645993b3 (patch) | |
| tree | 17bf2d289774788cfafc4504930737a3e9885101 /src/lua.h | |
| parent | a53d2ae92f02ea3efc01c5b76ce8471de3d4e879 (diff) | |
test
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
+
+
|
