Push error handler afresh each time lua_pcall is used
authorKahrl <kahrl@gmx.net>
Tue, 25 Aug 2015 05:44:53 +0000 (07:44 +0200)
committerest31 <MTest31@outlook.com>
Wed, 26 Aug 2015 23:56:06 +0000 (01:56 +0200)
commit3304e1e517fb8aac008c4684e72a4b59b408414a
treeddcc820601c02d6783578b7accc68d35a2d312fc
parent8658c8d9b5f30dc952eed29a19d619de9210474c
Push error handler afresh each time lua_pcall is used

Fixes "double fault" / "error in error handling" messages
(issue #1423) and instead shows a complete backtrace.
16 files changed:
src/script/common/c_internal.cpp
src/script/common/c_internal.h
src/script/cpp_api/s_async.cpp
src/script/cpp_api/s_async.h
src/script/cpp_api/s_base.cpp
src/script/cpp_api/s_base.h
src/script/cpp_api/s_entity.cpp
src/script/cpp_api/s_inventory.cpp
src/script/cpp_api/s_item.cpp
src/script/cpp_api/s_mainmenu.cpp
src/script/cpp_api/s_node.cpp
src/script/cpp_api/s_nodemeta.cpp
src/script/cpp_api/s_player.cpp
src/script/cpp_api/s_server.cpp
src/script/lua_api/l_env.cpp
src/script/scripting_mainmenu.cpp