From 72aeebfeb717e8055235c463cf6a2efd89ef21df Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Thu, 22 Apr 2004 08:14:33 +0000 Subject: [PATCH] added type REAL (float on 32bit, double on 64bit) --- amxmodx/amx.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/amxmodx/amx.h b/amxmodx/amx.h index 646a93a1..3d03d42e 100755 --- a/amxmodx/amx.h +++ b/amxmodx/amx.h @@ -21,7 +21,8 @@ * Version: $Id$ */ -#define LINUX +// JIT used +//#define JIT #if defined __linux__ #include #endif @@ -120,6 +121,14 @@ extern "C" { #error Unsupported cell size (SMALL_CELL_SIZE) #endif +#if SMALL_CELL_SIZE==32 + #define REAL float +#elif SMALL_CELL_SIZE==64 + #define REAL double +#else + #error Unsupported cell size +#endif + #define UNPACKEDMAX ((1 << (sizeof(cell)-1)*8) - 1) struct tagAMX;