[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Second argument in luaL_newlib should be an array
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 14 Sep 2014 20:02:55 +0200
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?