lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


void luaL_newlib (lua_State *L, const luaL_Reg *l);

is documented to be equivalent to

(luaL_newlibtable(L,l), luaL_setfuncs(L,l,0))

But since luaL_newlibtable() documents that its second argument
must be an array, the luaL_newlib should inherit this requirement:

void luaL_newlib (lua_State *L, const luaL_Reg l[]);

Alex