mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix typo in exception documentation
This commit is contained in:
parent
c4c2f18eea
commit
ea4176601d
|
@ -14,10 +14,10 @@ inline void my_panic(sol::optional<std::string> maybe_msg) {
|
||||||
int main (int, char*[]) {
|
int main (int, char*[]) {
|
||||||
sol::state lua(sol::c_call<decltype(&my_panic), &my_panic>);
|
sol::state lua(sol::c_call<decltype(&my_panic), &my_panic>);
|
||||||
// or, if you already have a lua_State* L
|
// or, if you already have a lua_State* L
|
||||||
// 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)>, &my_panic> );
|
// lua.set_panic( sol::c_call<decltype(&my_panic), &my_panic> );
|
||||||
|
|
||||||
// uncomment the below to see
|
// uncomment the below to see
|
||||||
//lua.script("boom_goes.the_dynamite");
|
//lua.script("boom_goes.the_dynamite");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user