golua
golua copied to clipboard
Go bindings for Lua C API - in progress
This module doesn’t build without Lua development libraries installed on the build host. This is a shortcoming compared to the situation in [mlua](https://github.com/khvzak/mlua), where users needn’t have Lua pre-installed for...
I have a lua script like below: ```lua return { answer = 42, ok = true } ``` I'd like to retrieve the table that the script has returned, I've...
int setLuaPath( lua_State* L, const char* path ) { lua_getglobal( L, "package" ); lua_getfield( L, -1, "path" ); // get field "path" from table at top of stack (-1) std::string...
When calling a lua function that errors, the C stack is not cleaned up. If the lua function is called many times, it will eventually overflow the stack. Any further...
I'm trying to set a metatable to a GoStruct object to be able calling methods in the manner like obj:Foo(). Currently, testudata() doesn't allow me to do this, requiring the...
Hi there! little disclaimer first: I'm not terribly familiar with go. I'm trying to take a look around how to use lua with go. I've opened a similar issue with...
Hello @aarzilli Thanks a lot for your work to create a go binding for lua C APIs. Environment: - Golang: 1.20 - Lua: 5.4.6 - golua: last version I am...
I hope I'm on the right track with these TODO items, the main reason I am working on this is because I need new thread to keep its context (should...
Hello @aarzilli Environment: - Golang: 1.23 - Lua: 5.4.6 - golua: last version I am building a static go binary with the following command: ```sh go build -tags "luaa lua54...