LUA_COMPAT_5_1 needs some options deprecated from 5.2 to 5.3

This commit is contained in:
Roberto Ierusalimschy 2015-02-28 16:22:31 -03:00
parent 27c5b1b237
commit 91efb4b895
1 changed files with 14 additions and 10 deletions

View File

@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.244 2015/02/05 16:53:34 roberto Exp roberto $
** $Id: luaconf.h,v 1.245 2015/02/05 17:15:33 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@ -300,20 +300,15 @@
*/
#define LUA_COMPAT_APIINTCASTS
/*
@@ LUA_COMPAT_FLOATSTRING makes Lua format integral floats without a
@@ a float mark ('.0').
** This macro is not on by default even in compatibility mode,
** because this is not really an incompatibility.
*/
/* #define LUA_COMPAT_FLOATSTRING */
#endif /* } */
#if defined(LUA_COMPAT_5_1) /* { */
/* Incompatibilities from 5.2 -> 5.3 */
#define LUA_COMPAT_MATHLIB
#define LUA_COMPAT_APIINTCASTS
/*
@@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'.
** You can replace it with 'table.unpack'.
@ -373,6 +368,15 @@
#endif /* } */
/*
@@ LUA_COMPAT_FLOATSTRING makes Lua format integral floats without a
@@ a float mark ('.0').
** This macro is not on by default even in compatibility mode,
** because this is not really an incompatibility.
*/
/* #define LUA_COMPAT_FLOATSTRING */
/* }================================================================== */