Add loadsvg script command, fix ParanoidNumber size limiting*
[ipdf/code.git] / src / real.h
index adb9503..e35d952 100644 (file)
@@ -178,7 +178,15 @@ namespace IPDF
        inline Real RealFromStr(const std::string & str) {return RealFromStr(str.c_str());}
 
 
-       inline void DebugRealInfo() {Debug("Compiled with REAL = %d => \"%s\" sizeof(Real) == %d bytes", REALTYPE, g_real_name[REALTYPE], sizeof(Real));}
+       inline void DebugRealInfo() 
+       {
+               Debug("Compiled with REAL = %d => \"%s\" sizeof(Real) == %d bytes", REALTYPE, g_real_name[REALTYPE], sizeof(Real));
+               #if REALTYPE == REAL_PARANOIDNUMBER
+                       #ifdef PARANOID_SIZE_LIMIT
+                               Debug("Size limit of %d is being enforced", PARANOID_SIZE_LIMIT);
+                       #endif
+               #endif
+       }
 
 }
 

UCC git Repository :: git.ucc.asn.au