mirror of
https://github.com/minetest/minetest.git
synced 2025-08-03 15:10:21 +02:00
Improve interop with LuaJIT: Disable 5.0 compatibility defines in Lua config
This commit is contained in:
@ -341,14 +341,14 @@
|
|||||||
** CHANGE it to undefined as soon as your programs use only '...' to
|
** CHANGE it to undefined as soon as your programs use only '...' to
|
||||||
** access vararg parameters (instead of the old 'arg' table).
|
** access vararg parameters (instead of the old 'arg' table).
|
||||||
*/
|
*/
|
||||||
#define LUA_COMPAT_VARARG
|
#undef LUA_COMPAT_VARARG
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
|
@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
|
||||||
** CHANGE it to undefined as soon as your programs use 'math.fmod' or
|
** CHANGE it to undefined as soon as your programs use 'math.fmod' or
|
||||||
** the new '%' operator instead of 'math.mod'.
|
** the new '%' operator instead of 'math.mod'.
|
||||||
*/
|
*/
|
||||||
#define LUA_COMPAT_MOD
|
#undef LUA_COMPAT_MOD
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
|
@@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
|
||||||
@ -356,14 +356,14 @@
|
|||||||
** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
|
** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
|
||||||
** off the advisory error when nesting [[...]].
|
** off the advisory error when nesting [[...]].
|
||||||
*/
|
*/
|
||||||
#define LUA_COMPAT_LSTR 1
|
#undef LUA_COMPAT_LSTR
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
|
@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
|
||||||
** CHANGE it to undefined as soon as you rename 'string.gfind' to
|
** CHANGE it to undefined as soon as you rename 'string.gfind' to
|
||||||
** 'string.gmatch'.
|
** 'string.gmatch'.
|
||||||
*/
|
*/
|
||||||
#define LUA_COMPAT_GFIND
|
#undef LUA_COMPAT_GFIND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
|
@@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
|
||||||
@ -371,7 +371,7 @@
|
|||||||
** CHANGE it to undefined as soon as you replace to 'luaL_register'
|
** CHANGE it to undefined as soon as you replace to 'luaL_register'
|
||||||
** your uses of 'luaL_openlib'
|
** your uses of 'luaL_openlib'
|
||||||
*/
|
*/
|
||||||
#define LUA_COMPAT_OPENLIB
|
#undef LUA_COMPAT_OPENLIB
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user