Lua.NET icon indicating copy to clipboard operation
Lua.NET copied to clipboard

`luaL_register` bad function signature(?)

Open RulHolos opened this issue 2 months ago • 0 comments

luaL_register takes a single luaL_Reg parameter instead of an array of these objects. Image

I believe it's supposed to take an array of luaL_Regs or a pointer to that array, as luajit shows it https://github.com/LuaJIT/LuaJIT/blob/fdf2379ccba1eb68ff07f8bc48541568f5bbdfbf/src/lib_aux.c#L144

RulHolos avatar Nov 09 '25 19:11 RulHolos