mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
[ci skip] I can write, I promise.
This commit is contained in:
parent
02bbe0c528
commit
72af3c6264
|
@ -31,7 +31,7 @@ To make this not be the case, you can set a panic function directly with ``lua_a
|
||||||
// lua_atpanic( L, sol::c_call<decltype(&my_panic)>, &my_panic> );
|
// lua_atpanic( L, sol::c_call<decltype(&my_panic)>, &my_panic> );
|
||||||
// or, with state/state_view:
|
// or, with state/state_view:
|
||||||
// sol::state_view lua(L);
|
// sol::state_view lua(L);
|
||||||
// lua.set_panic( sol::c_call<decltype(&my_panic_call)>, &my_panic_call> );
|
// lua.set_panic( sol::c_call<decltype(&my_panic)>, &my_panic> );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user