ziglua
ziglua copied to clipboard
Zig bindings for the Lua C API
When making a web build for Emscripten, and linking ziglua with the Emscripten system headers, linking fails with an error like: ``` /Users/ccuddigan/.cache/zig/p/1220f93ada1fa077ab096bf88a5b159ad421dbf6a478edec78ddb186d0c21d3476d9/src/lauxlib.h:246:3: error: unknown type name 'FILE' FILE *f;...
In the Lua C API we could write DLLs to be used as libraries in Lua, is there anything similar to such in ZigLua?
It would be nice if constants such as `LUA_LOADED_TABLE` were available, instead of having to rely on `LUA_LOADED_TABLE` always being equal to `"_LOADED"`. I think [the following excerpt](https://www.lua.org/manual/5.4/manual.html#8) from the...
I did try to use require or from import from luau. It crashed. I wonder if the file in script loading or not enable? ``` local foo require "foo" ```...
This is more of a FYI / potential resource for others than it is a real PR: the code is messy, has a few chunks lifted from [sokol-zig](https://github.com/floooh/sokol-zig/), and a...
It would be very nice if we could configure ziglua to lint our lua code when we are running `zig build`. We would then report any errors like we would...
(Note: I discussed this idea a few months ago in the ziglua discord, however, my original idea didn't end up working out because comptime globally mutable data had been removed...
The code below freezes with Ziglua's LuaJIT. The C++ translation of my example works correctly. I reckon this may be a problem with how LuaJIT is compiled by Ziglua? The...
* parse tuple struct type * Use custom function ziglua_toAny or/and ziglua_pushAny for special cases, like when working with extern structs and others.
sorry. I made a mistake in the issue number. fixed #80 ``` E:\repos\github.com\natecraddock\ziglua\.zig-cache\o\acce31313327c113af65b0f056d4ffd1/buildvm_arch.h:8:12: error: \U used with no following hex digits #line 1 "AppData\Local\zig\p\1220ae2d84cfcc2a7aa670661491f21bbed102d335de18ce7d36866640fd9dfcc33a\src\vm_x64.dasc" ``` `Windows11` `0.14.0-dev.2435+7575f2121` ``` zig build...