Add lua exception handling test code
Catch some error situations when mod used without thinking about it
This commit is contained in:
@@ -88,6 +88,11 @@ class ModApiServer : public ModApiBase {
|
||||
// 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user