diff --git a/src/luadebug/luadbg/onelua.c b/src/luadebug/luadbg/onelua.c index c7009efd..11398990 100644 --- a/src/luadebug/luadbg/onelua.c +++ b/src/luadebug/luadbg/onelua.c @@ -94,7 +94,8 @@ void _bee_lua_assert(const char* message, const char* file, unsigned line) { abort(); } -void _bee_lua_apicheck(lua_State* L, const char* message, const char* file, unsigned line) { +void _bee_lua_apicheck(void* l, const char* message, const char* file, unsigned line) { + lua_State* L = l; fprintf(stderr, "(%s:%d) %s\n", file, line, message); fflush(stderr); if (!lua_checkstack(L, LUA_MINSTACK)) {