At least compile with Lua 5.4
This commit is contained in:
parent
79c5bacb0c
commit
dfcba814a9
1 changed files with 9 additions and 0 deletions
|
@ -23,11 +23,20 @@ extern "C"
|
||||||
#define LUA_SUPPORTS_INTEGERS
|
#define LUA_SUPPORTS_INTEGERS
|
||||||
#define LUA_SUPPORTS_LOAD_STRING
|
#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
|
#else
|
||||||
#error "Unsupported Lua version"
|
#error "Unsupported Lua version"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef LUA_SUPPORTS_INTEGERS
|
#ifdef LUA_SUPPORTS_INTEGERS
|
||||||
#define LUA_INTEGER_POSTFIX(X) X##integer
|
#define LUA_INTEGER_POSTFIX(X) X##integer
|
||||||
|
|
Loading…
Add table
Reference in a new issue