[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is it "valid" to do luaL_setfuncs() multiple time one the same table.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 3 May 2018 19:14:46 -0300
> Is it valid to register addition function afterward by calling a second time
> luaL_setfuncs() on the same time ?
Yes. See https://www.lua.org/source/5.3/lauxlib.c.html#luaL_setfuncs
> Same question with luaL_register() on 5.1 :)
Yes. See https://www.lua.org/source/5.1/lauxlib.c.html#luaI_openlib
though it's harder to follow.