1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Add lua exception handling test code

Catch some error situations when mod used without thinking about it
This commit is contained in:
sapier 2014-08-23 13:24:37 +02:00
parent 3e267a6ece
commit e09293b483
3 changed files with 146 additions and 0 deletions

View file

@ -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);