From f61d435a7d34a07c2edd51714ad6072916e40092 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 7 Jan 2005 18:00:33 -0200 Subject: a^b calls `pow´ (from math.h) directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luaconf.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 905a00ca..6d3d34f8 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.22 2004/12/27 15:58:15 roberto Exp roberto $ +** $Id: luaconf.h,v 1.23 2005/01/04 12:46:04 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -257,6 +257,11 @@ __inline int l_lrint (double flt) #define LUA_UACNUMBER double +/* primitive `^' operator for numbers */ +#include +#define lua_pow(a,b) pow(a,b) + + /* type to ensure maximum alignment */ #define LUSER_ALIGNMENT_T union { double u; void *s; long l; } -- cgit v1.2.3-55-g6feb