aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-02-28 16:22:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-02-28 16:22:31 -0300
commit91efb4b895cabb3ece67c92feb6db84b1fe7906c (patch)
tree01a1bbfe4ad387738614e9fb5964ee0fb4b962eb /luaconf.h
parent27c5b1b2370e730f2ccd1dcae88e3601035e40c4 (diff)
downloadlua-91efb4b895cabb3ece67c92feb6db84b1fe7906c.tar.gz
lua-91efb4b895cabb3ece67c92feb6db84b1fe7906c.tar.bz2
lua-91efb4b895cabb3ece67c92feb6db84b1fe7906c.zip
LUA_COMPAT_5_1 needs some options deprecated from 5.2 to 5.3
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/luaconf.h b/luaconf.h
index b883910d..76ef88f5 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.244 2015/02/05 16:53:34 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.245 2015/02/05 17:15:33 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -300,20 +300,15 @@
300*/ 300*/
301#define LUA_COMPAT_APIINTCASTS 301#define LUA_COMPAT_APIINTCASTS
302 302
303
304/*
305@@ LUA_COMPAT_FLOATSTRING makes Lua format integral floats without a
306@@ a float mark ('.0').
307** This macro is not on by default even in compatibility mode,
308** because this is not really an incompatibility.
309*/
310/* #define LUA_COMPAT_FLOATSTRING */
311
312#endif /* } */ 303#endif /* } */
313 304
314 305
315#if defined(LUA_COMPAT_5_1) /* { */ 306#if defined(LUA_COMPAT_5_1) /* { */
316 307
308/* Incompatibilities from 5.2 -> 5.3 */
309#define LUA_COMPAT_MATHLIB
310#define LUA_COMPAT_APIINTCASTS
311
317/* 312/*
318@@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'. 313@@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'.
319** You can replace it with 'table.unpack'. 314** You can replace it with 'table.unpack'.
@@ -373,6 +368,15 @@
373 368
374#endif /* } */ 369#endif /* } */
375 370
371
372/*
373@@ LUA_COMPAT_FLOATSTRING makes Lua format integral floats without a
374@@ a float mark ('.0').
375** This macro is not on by default even in compatibility mode,
376** because this is not really an incompatibility.
377*/
378/* #define LUA_COMPAT_FLOATSTRING */
379
376/* }================================================================== */ 380/* }================================================================== */
377 381
378 382