lua-users home
lua-l archive

Re: Second argument in luaL_newlib should be an array

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


Dirk Laurie wrote:
> Is there any difference between *l and l[] in C?
There is no difference for function arguments but luaL_newlib()
and luaL_newlibtable() are macros. Because the documentation
emphasises that l must be an array, I suspect the implementation
calculates sizeof(l) / sizeof(l[0]).
Alex

AltStyle によって変換されたページ (->オリジナル) /