Something
public text v1 · immutable// buff is a string containing the path to the lua script
lua_getglobal(L, "debug");
printf("debug table ? %d\n", lua_isnil(L, -1));
lua_pushstring(L, "traceback");
lua_gettable(L, -2);
printf("traceback func ? %d\n", lua_isnil(L, -1));
printf("traceback func ? %d\n", lua_isfunction(L, -1));
return (luaL_loadfile (L, buff)) || (lua_pcall (L, 0, 0, -1));