luaL_setfuncs
[-nup, +0, m]
void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);
Registers all functions in the array l
(see luaL_Reg
) into the table on the top of the stack (below optional upvalues, see next).
When nup
is not zero, all functions are created sharing nup
upvalues, which must be previously pushed on the stack on top of the library table. These values are popped from the stack after the registration.
Please login to continue.