Second argument in luaL_newlib should be an array
[
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: 2014年9月13日 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