aboutsummaryrefslogtreecommitdiff
path: root/src/l52util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/l52util.h')
-rw-r--r--src/l52util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/l52util.h b/src/l52util.h
index f4f0497..94f1bfa 100644
--- a/src/l52util.h
+++ b/src/l52util.h
@@ -18,6 +18,9 @@ int luaL_typerror (lua_State *L, int narg, const char *tname);
18 18
19void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l); 19void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l);
20 20
21
22#define lutil_require luaL_requiref
23
21#else // lua 5.1 24#else // lua 5.1
22 25
23// functions form lua 5.2 26// functions form lua 5.2
@@ -29,6 +32,8 @@ void lua_rawgetp (lua_State *L, int index, const void *p);
29void lua_rawsetp (lua_State *L, int index, const void *p); 32void lua_rawsetp (lua_State *L, int index, const void *p);
30void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); 33void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);
31 34
35void lutil_require(lua_State *L, const char* name, lua_CFunction fn, int glb);
36
32#endif 37#endif
33 38
34int lutil_newmetatablep (lua_State *L, const void *p); 39int lutil_newmetatablep (lua_State *L, const void *p);