At least compile with Lua 5.4

This commit is contained in:
Ilari Liusvaara 2020-09-28 23:40:32 +03:00
parent 79c5bacb0c
commit dfcba814a9

View file

@ -23,11 +23,20 @@ extern "C"
#define LUA_SUPPORTS_INTEGERS
#define LUA_SUPPORTS_LOAD_STRING
#else
#if LUA_VERSION_NUM == 504
#define LUA_SUPPORTS_LOAD_MODE
#define LUA_SUPPORTS_RIDX_GLOBALS
#define LUA_SUPPORTS_INTEGERS
#define LUA_SUPPORTS_LOAD_STRING
#else
#error "Unsupported Lua version"
#endif
#endif
#endif
#endif
#ifdef LUA_SUPPORTS_INTEGERS
#define LUA_INTEGER_POSTFIX(X) X##integer