Replies: 1 comment
I'll check it out when I get home. I've never actually used debug so it was best guess. Lmk anything else you find |
0 replies
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
I'll check it out when I get home. I've never actually used debug so it was best guess. Lmk anything else you find |
Uh oh!
There was an error while loading. Please reload this page.
Here is the code I'm using to pull information from Lua using LuaNET 6.0.1:
`
using LuaNET.Lua54;
public class SimpleLua
{
public static int SimpleLuaBinding(lua_State luaState)
{
// Get the method name which was called
Lua.lua_Debug debugInfo = new Lua.lua_Debug();
int error = Lua.lua_getinfo(luaState, "n", debugInfo);
}
}
public class Program
{
public static void Main(string[] args)
{
lua_State lua = Lua.luaL_newstate();
Lua.lua_register(lua, "testOne", SimpleLua.SimpleLuaBinding);
Lua.lua_register(lua, "testTwo", SimpleLua.SimpleLuaBinding);
Lua.lua_register(lua, "testThree", SimpleLua.SimpleLuaBinding);
}
`
The call fails at Lua.lua_getinfo (using Lua54).
Fatal error. 0xC0000005 [stack trace]All reactions