mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
proper default error handler
This commit is contained in:
parent
ad039c8cc2
commit
42a03a2618
|
@ -193,7 +193,7 @@ public:
|
||||||
sol::reference error_handler;
|
sol::reference error_handler;
|
||||||
|
|
||||||
function() = default;
|
function() = default;
|
||||||
function(lua_State* L, int index = -1): reference(L, index) {
|
function(lua_State* L, int index = -1): reference(L, index), error_handler(default_handler) {
|
||||||
type_assert(L, index, type::function);
|
type_assert(L, index, type::function);
|
||||||
}
|
}
|
||||||
function(const function&) = default;
|
function(const function&) = default;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user