Bugfix in lua_callback_result.cpp example

This commit is contained in:
Emil Dotchevski
2026-02-01 13:55:46 -05:00
parent 0f20ce05b2
commit 48a7f72301
+2 -1
View File
@@ -57,7 +57,8 @@ int do_work( lua_State * L )
}
else
{
return leaf::new_error(ec1), luaL_error(L,"do_work_error"); // luaL_error does not return (longjmp).
(void) leaf::new_error(ec1);
return luaL_error(L,"do_work_error"); // luaL_error does not return (longjmp).
}
}