mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
pre-empty luajit exception handlers (turns out we really need it)
This commit is contained in:
parent
d883ad072c
commit
e06b939d73
|
@ -32,6 +32,7 @@ public:
|
||||||
state(lua_CFunction panic = detail::atpanic) : unique_base(luaL_newstate(), lua_close),
|
state(lua_CFunction panic = detail::atpanic) : unique_base(luaL_newstate(), lua_close),
|
||||||
state_view(unique_base::get()) {
|
state_view(unique_base::get()) {
|
||||||
set_panic(panic);
|
set_panic(panic);
|
||||||
|
stack::luajit_exception_handler(unique_base::get());
|
||||||
}
|
}
|
||||||
|
|
||||||
using state_view::get;
|
using state_view::get;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user