diff options
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.193 2014/03/21 14:27:16 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.194 2014/04/03 14:18:02 roberto Exp $ |
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 | */ |
@@ -497,7 +497,8 @@ | |||
497 | /* the following operations need the math library */ | 497 | /* the following operations need the math library */ |
498 | #if defined(lobject_c) || defined(lvm_c) | 498 | #if defined(lobject_c) || defined(lvm_c) |
499 | #include <math.h> | 499 | #include <math.h> |
500 | #define luai_nummod(L,a,b) ((void)L, (a) - l_floor((a)/(b))*(b)) | 500 | #define luai_nummod(L,a,b,m) \ |
501 | { (m) = l_mathop(fmod)(a,b); if ((m) != 0 && (a)*(b) < 0) (m) += (b); } | ||
501 | #define luai_numpow(L,a,b) ((void)L, l_mathop(pow)(a,b)) | 502 | #define luai_numpow(L,a,b) ((void)L, l_mathop(pow)(a,b)) |
502 | #endif | 503 | #endif |
503 | 504 | ||