diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-08 15:00:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-08 15:00:16 -0300 |
commit | 7d57ea70bc975922485d589c8a6d8dedaa0fba02 (patch) | |
tree | d7f7da1492de151749a69042cd2bf63320638020 /luaconf.h | |
parent | 2d5b923759a77d8f5f7bfa62906ea37f46b9281d (diff) | |
download | lua-7d57ea70bc975922485d589c8a6d8dedaa0fba02.tar.gz lua-7d57ea70bc975922485d589c8a6d8dedaa0fba02.tar.bz2 lua-7d57ea70bc975922485d589c8a6d8dedaa0fba02.zip |
new `mod' (`%') operator
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.30 2005/02/28 15:59:11 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.31 2005/03/08 13:27:36 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 | */ |
@@ -261,6 +261,7 @@ __inline int l_lrint (double flt) | |||
261 | #define num_lt(a,b) ((a)<(b)) | 261 | #define num_lt(a,b) ((a)<(b)) |
262 | #define num_le(a,b) ((a)<=(b)) | 262 | #define num_le(a,b) ((a)<=(b)) |
263 | #include <math.h> | 263 | #include <math.h> |
264 | #define num_mod(a,b) ((a) - floor((a)/(b))*(b)) | ||
264 | #define num_pow(a,b) pow(a,b) | 265 | #define num_pow(a,b) pow(a,b) |
265 | 266 | ||
266 | 267 | ||