Use LuaErrors in security check macros
authorShadowNinja <shadowninja@minetest.net>
Sun, 6 Mar 2016 19:41:26 +0000 (14:41 -0500)
committerShadowNinja <shadowninja@minetest.net>
Mon, 7 Mar 2016 18:37:15 +0000 (13:37 -0500)
commit88fbe7ca1e5451851ee0c7ab5524c39a7bb703c2
tree53cf5103ba59dab58fd03732472be87a44c4a78a
parent04e311a36d15ad6c1e4436f169fe6b45e855009f
Use LuaErrors in security check macros

Throwing a LuaError calls destructors as it propagates up the stack,
wheres lua_error just executes a longjmp.
src/script/cpp_api/s_security.h
src/script/lua_api/l_util.cpp