commit 3cb1ed388e38eba952c7bf58e6189ef3d9b4b011 from: Sergey Bronnikov date: Wed Jul 10 15:18:15 2024 UTC luzer: replace luaL_error with abort We cannot use `luaL_error` if Lua state is not initialized. commit - 069045d59af704cf8f0bf27432436e27b5712ede commit + 3cb1ed388e38eba952c7bf58e6189ef3d9b4b011 blob - e740944321eb16fa400d8e86fb3e6cba3688772d blob + cdde6f40a423f7da44af835ae1e50b7f92ce7b8a --- luzer/luzer.c +++ luzer/luzer.c @@ -43,8 +43,10 @@ set_global_lua_state(lua_State *L) lua_State * get_global_lua_state(void) { - if (!LL) - luaL_error(LL, "Lua state is not initialized."); + if (!LL) { + fprintf(stderr, "Lua state is not initialized.\n"); + abort(); + } return LL; }