Makes lua 5.1 workable again

Issue #2389
This commit is contained in:
Felipe Zimmerle
2020-09-21 10:04:40 -03:00
parent e9dce44f6a
commit 377fb723ca
2 changed files with 2 additions and 3 deletions

View File

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