a^b calls `pow´ (from math.h) directly
This commit is contained in:
@@ -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 <math.h>
|
||||
#define lua_pow(a,b) pow(a,b)
|
||||
|
||||
|
||||
|
||||
/* type to ensure maximum alignment */
|
||||
#define LUSER_ALIGNMENT_T union { double u; void *s; long l; }
|
||||
|
||||
Reference in New Issue
Block a user