Nathan Craddock
Nathan Craddock
Great! I'll keep this issue open for a bit. You raised some questions about linkers and I want to make sure that this approach is correct. Once I have confirmed...
`registerFns` is equivalent to `luaL_register`. This function _does_ exist in Lua 5.2 and 5.3, but only with the compatibility module defined. From Lua 5.2 and on, the replacement function is...
I just realized this is at least partially resolved as of https://github.com/natecraddock/ziglua/pull/54. I just tested and setFuncs now works fine in all versions of Lua. newLib does _not_ work yet,...
Good enough for now as of 1938997
Just had another idea. Currently the tests use the zig module for importing ziglua. If we instead pull in lib.zig, that may give better doc generation. Maybe not, but at...
Additionally, if we can't get the docs gen to exclude functions depending on the Lua target, then we might as well just generate one doc
Yes this is planned, I just haven't gotten around to it yet. I will mention that luajit has a much more complex build system than regular lua
The build.zig for ffmpeg involves using the nasm assembler at compile time. This is similar to what is necessary for building luajit. See this for reference https://github.com/andrewrk/ffmpeg/blob/73ac2d6ce909854436a23a26a9f712861eec2b4e/build.zig#L873
@theoparis I'm also open to Luau though for me that is lower priority than luajit. Feel free to open a separate issue to track it
@nurpax As it seems there is some strong interest in Luau, I've made a separate issue for it here: https://github.com/natecraddock/ziglua/issues/30 Though I haven't attempted either yet, it seems Luau might...