diff options
author | sapier <Sapier at GMX dot net> | 2014-08-23 13:24:37 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-08-23 20:53:34 +0200 |
commit | e09293b483fcfb5a2095d4bfeccae57153df6250 (patch) | |
tree | 33e9bad78d9f11a5bed95006fb5df6c9fae2413c /src/script/lua_api/l_server.h | |
parent | 3e267a6ece99b0affa1e0d5c15fb21c1b60dd63d (diff) | |
download | minetest-e09293b483fcfb5a2095d4bfeccae57153df6250.tar.gz minetest-e09293b483fcfb5a2095d4bfeccae57153df6250.tar.bz2 minetest-e09293b483fcfb5a2095d4bfeccae57153df6250.zip |
Add lua exception handling test code
Catch some error situations when mod used without thinking about it
Diffstat (limited to 'src/script/lua_api/l_server.h')
-rw-r--r-- | src/script/lua_api/l_server.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |