mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
update state to use default handler
This commit is contained in:
parent
345a398cdc
commit
504f49f3c7
|
@ -29,6 +29,7 @@ notifications:
|
|||
on_failure: change
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- os: linux
|
||||
env: COMPILER=g++-4.9 LUA_VERSION=lua52
|
||||
|
@ -43,7 +44,7 @@ matrix:
|
|||
- ninja-build
|
||||
- liblua5.2-dev
|
||||
|
||||
# gcc-5
|
||||
# gcc-4.9
|
||||
- os: linux
|
||||
env: COMPILER=g++-4.9 LUA_VERSION=luajit51
|
||||
compiler: gcc
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// This file was generated with a script.
|
||||
// Generated 2017-07-01 15:02:51.956179 UTC
|
||||
// This header was generated with sol v2.18.0 (revision da28527)
|
||||
// Generated 2017-07-04 08:40:46.845523 UTC
|
||||
// This header was generated with sol v2.18.0 (revision 345a398)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||
|
@ -14576,6 +14576,7 @@ namespace sol {
|
|||
state(lua_CFunction panic = default_at_panic) : unique_base(luaL_newstate(), lua_close),
|
||||
state_view(unique_base::get()) {
|
||||
set_panic(panic);
|
||||
sol::protected_function::set_default_handler(sol::object(lua_state(), in_place, default_error_handler));
|
||||
stack::luajit_exception_handler(unique_base::get());
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ namespace sol {
|
|||
state(lua_CFunction panic = default_at_panic) : unique_base(luaL_newstate(), lua_close),
|
||||
state_view(unique_base::get()) {
|
||||
set_panic(panic);
|
||||
sol::protected_function::set_default_handler(sol::object(lua_state(), in_place, default_error_handler));
|
||||
stack::luajit_exception_handler(unique_base::get());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user