[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Second argument in luaL_newlib should be an array
- From: Alexander Nasonov <alnsn@...>
- Date: Sat, 13 Sep 2014 18:16:08 +0100
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