WeaselGames / godot_luaAPI

Godot LuaAPI
https://luaapi.weaselgames.info
Other
348 stars 27 forks source link

call_function broken on iOS with empty arguments array #204

Closed jbromberg closed 3 months ago

jbromberg commented 3 months ago

Describe the bug On iOS devices when calling call_function with an empty arguments array, the function is not called and returns an empty stack traceback: string.

To Reproduce

var lua := LuaAPI.new()
lua.do_string("
function foo()
print(\"foo\")
end
")
print(lua.call_function("foo", [])) # Doesn't work
print(lua.call_function("foo", [""])) # Works

Unable to reproduce on macOS. Only happens on iOS.

Enviroment (please complete the following information):