|
|
** 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 |
|
|
** 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' |
|
|
** 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 |
| |
| |
| |