Browse Source

Merge pull request #2291 from ghalliday/dbgassertex

Move dbgassertex to jlib so it can be used elsewhere

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 years ago
parent
commit
4dba80293c
2 changed files with 7 additions and 7 deletions
  1. 0 7
      roxie/roxiemem/roxiemem.hpp
  2. 7 0
      system/jlib/jiface.hpp

+ 0 - 7
roxie/roxiemem/roxiemem.hpp

@@ -40,13 +40,6 @@
 #define ROXIEMM_LARGE_MEMORY_EXHAUSTED    ROXIEMM_ERROR_START+4
 
 
-//Use for asserts that are highly unlikely to occur, and would likely to be reproduced in debug mode.
-#ifdef _DEBUG
-#define dbgassertex(x) assertex(x)
-#else
-#define dbgassertex(x)
-#endif
-
 #ifdef __64BIT__
 #define HEAP_ALIGNMENT_SIZE I64C(0x100000u)                     // 1 mb heaplets - may be too big?
 #else

+ 7 - 0
system/jlib/jiface.hpp

@@ -54,6 +54,13 @@ void jlib_decl RaiseAssertCore(const char *assertion, const char *file, unsigned
 #define verify(p) ((void) (p))
 #endif
 
+//Use for asserts that are highly unlikely to occur, and would likely to be reproduced in debug mode.
+#ifdef _DEBUG
+#define dbgassertex(x) assertex(x)
+#else
+#define dbgassertex(x)
+#endif
+
 #define DEAD_PSEUDO_COUNT               0x3fffffff
 
 //The simplest implementation of IInterface.  Can be used in situations where speed is critical, and