aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util/lua/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/util/lua/lua.h')
-rw-r--r--engines/sword25/util/lua/lua.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sword25/util/lua/lua.h b/engines/sword25/util/lua/lua.h
index 08ad80d70f..768ec1ad74 100644
--- a/engines/sword25/util/lua/lua.h
+++ b/engines/sword25/util/lua/lua.h
@@ -48,6 +48,15 @@
#define LUA_ERRMEM 4
#define LUA_ERRERR 5
+// Added in ScummVM. Refer to http://www.lua.org/manual/5.1/manual.html
+static const char* luaErrorDescription[] = {
+ "No error",
+ "Coroutine yield", // not an actual error, see lua_resume
+ "Runtime error",
+ "Syntax error during pre-compilation", // refer to lua_load
+ "Memory allocation error",
+ "Error while running the error handler function"
+};
typedef struct lua_State lua_State;