aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-01-27 11:34:32 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-01-27 11:34:32 -0200
commit86dd8bf3f58f118003d4b02773be08b68a5091ef (patch)
tree024776667a483fe4ed319f77ae050968a2f12a7b /luaconf.h
parent67c5de928349bfff6ed8b4ae5ed1abe05abcb08e (diff)
downloadlua-86dd8bf3f58f118003d4b02773be08b68a5091ef.tar.gz
lua-86dd8bf3f58f118003d4b02773be08b68a5091ef.tar.bz2
lua-86dd8bf3f58f118003d4b02773be08b68a5091ef.zip
no more 'L' in macros "luai_num*" (several places that use those macros
cannot throw errors anyway...)
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/luaconf.h b/luaconf.h
index c5c83278..39293e29 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.187 2013/10/10 15:45:03 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.188 2013/11/21 17:23:14 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*/
@@ -488,21 +488,21 @@
488/* the following operations need the math library */ 488/* the following operations need the math library */
489#if defined(lobject_c) || defined(lvm_c) 489#if defined(lobject_c) || defined(lvm_c)
490#include <math.h> 490#include <math.h>
491#define luai_nummod(L,a,b) ((a) - l_floor((a)/(b))*(b)) 491#define luai_nummod(a,b) ((a) - l_floor((a)/(b))*(b))
492#define luai_numpow(L,a,b) (l_mathop(pow)(a,b)) 492#define luai_numpow(a,b) (l_mathop(pow)(a,b))
493#endif 493#endif
494 494
495/* these are quite standard operations */ 495/* these are quite standard operations */
496#if defined(LUA_CORE) 496#if defined(LUA_CORE)
497#define luai_numadd(L,a,b) ((a)+(b)) 497#define luai_numadd(a,b) ((a)+(b))
498#define luai_numsub(L,a,b) ((a)-(b)) 498#define luai_numsub(a,b) ((a)-(b))
499#define luai_nummul(L,a,b) ((a)*(b)) 499#define luai_nummul(a,b) ((a)*(b))
500#define luai_numdiv(L,a,b) ((a)/(b)) 500#define luai_numdiv(a,b) ((a)/(b))
501#define luai_numunm(L,a) (-(a)) 501#define luai_numunm(a) (-(a))
502#define luai_numeq(a,b) ((a)==(b)) 502#define luai_numeq(a,b) ((a)==(b))
503#define luai_numlt(L,a,b) ((a)<(b)) 503#define luai_numlt(a,b) ((a)<(b))
504#define luai_numle(L,a,b) ((a)<=(b)) 504#define luai_numle(a,b) ((a)<=(b))
505#define luai_numisnan(L,a) (!luai_numeq((a), (a))) 505#define luai_numisnan(a) (!luai_numeq((a), (a)))
506#endif 506#endif
507 507
508 508