From 79a85fd80a6e1af15e7d9b5ee96d3d77645993b3 Mon Sep 17 00:00:00 2001 From: ame Date: Mon, 29 Jan 2024 09:54:16 -0600 Subject: test --- src/lua.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'src/lua.h') diff --git a/src/lua.h b/src/lua.h index 625a0c1..f853408 100644 --- a/src/lua.h +++ b/src/lua.h @@ -1,21 +1,21 @@ -#include -#include -#include - - -#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 +#include +#include + + +#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 + + -- cgit v1.2.3