Adds support to lua 5.4

This commit is contained in:
Felipe Zimmerle
2020-08-17 11:08:03 -03:00
parent ae3ad5eaa7
commit 8c85b78361
2 changed files with 17 additions and 3 deletions

View File

@@ -155,7 +155,8 @@ int Lua::run(Transaction *t, const std::string &str) {
case LUA_ERRMEM:
e.assign("Memory error. ");
break;
#ifndef WITH_LUA_5_1
#if defined(WITH_LUA_5_1) and !defined(WITH_LUA_5_4)
case LUA_ERRGCMM:
e.assign("Garbage Collector error. ");
break;