Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/l52util.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l){

#else

#ifndef LUA_LJDIR
void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup){
luaL_checkstack(L, nup, "too many upvalues");
for (; l->name != NULL; l++) { /* fill the table with given functions */
Expand All @@ -33,6 +34,7 @@ void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup){
}
lua_pop(L, nup); /* remove upvalues */
}
#endif

void lua_rawgetp(lua_State *L, int index, const void *p){
index = lua_absindex(L, index);
Expand Down
2 changes: 2 additions & 0 deletions src/l52util.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l);

void lua_rawgetp (lua_State *L, int index, const void *p);
void lua_rawsetp (lua_State *L, int index, const void *p);
#ifndef LUA_LJDIR
void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);
#endif

void lutil_require(lua_State *L, const char* name, lua_CFunction fn, int glb);

Expand Down