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:
parent
3e267a6ece
commit
e09293b483
3 changed files with 146 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue