1
0

lua-compat.h 332 B

123456789
  1. #if !defined LUA_VERSION_NUM || LUA_VERSION_NUM==501
  2. #ifndef luaL_newlib
  3. #define luaL_newlib(L, l) \
  4. (lua_newtable((L)),luaL_setfuncs((L), (l), 0))
  5. #endif
  6. extern void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup);
  7. extern void luaL_requiref(lua_State *L, char const* modname,
  8. lua_CFunction openf, int glb);
  9. #endif