diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-07 18:00:33 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-07 18:00:33 -0200 |
commit | f61d435a7d34a07c2edd51714ad6072916e40092 (patch) | |
tree | 4f1618078fb008b579533a661b46dba83624a42c /luaconf.h | |
parent | 071b2ae0e1aba719cb3f909d2b02c79f5873ff36 (diff) | |
download | lua-f61d435a7d34a07c2edd51714ad6072916e40092.tar.gz lua-f61d435a7d34a07c2edd51714ad6072916e40092.tar.bz2 lua-f61d435a7d34a07c2edd51714ad6072916e40092.zip |
a^b calls `pow´ (from math.h) directly
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.22 2004/12/27 15:58:15 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.23 2005/01/04 12:46:04 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 | */ |
@@ -257,6 +257,11 @@ __inline int l_lrint (double flt) | |||
257 | #define LUA_UACNUMBER double | 257 | #define LUA_UACNUMBER double |
258 | 258 | ||
259 | 259 | ||
260 | /* primitive `^' operator for numbers */ | ||
261 | #include <math.h> | ||
262 | #define lua_pow(a,b) pow(a,b) | ||
263 | |||
264 | |||
260 | 265 | ||
261 | /* type to ensure maximum alignment */ | 266 | /* type to ensure maximum alignment */ |
262 | #define LUSER_ALIGNMENT_T union { double u; void *s; long l; } | 267 | #define LUSER_ALIGNMENT_T union { double u; void *s; long l; } |