From e09293b483fcfb5a2095d4bfeccae57153df6250 Mon Sep 17 00:00:00 2001 From: sapier Date: Sat, 23 Aug 2014 13:24:37 +0200 Subject: Add lua exception handling test code Catch some error situations when mod used without thinking about it --- src/script/lua_api/l_server.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/script/lua_api/l_server.h') diff --git a/src/script/lua_api/l_server.h b/src/script/lua_api/l_server.h index 4101f2856..fd85a8975 100644 --- a/src/script/lua_api/l_server.h +++ b/src/script/lua_api/l_server.h @@ -88,6 +88,11 @@ private: // notify_authentication_modified(name) static int l_notify_authentication_modified(lua_State *L); +#ifndef NDEBUG + // cause_error(type_of_error) + static int l_cause_error(lua_State *L); +#endif + public: static void Initialize(lua_State *L, int top); -- cgit v1.2.3