lua-users home
lua-l archive

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


2014-09-13 19:16 GMT+02:00 Alexander Nasonov <alnsn@yandex.ru>:
> 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[]);

Is there any difference between *l and l[] in C?