diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-10-23 17:52:33 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-23 17:52:33 +0100 |
commit | 46b8e9a0ecba18abe7040acc85298eed32c4e0fe (patch) | |
tree | b0c3e17649548699da0bee7fd45d2c45c4d8935c /starmath/inc/node.hxx | |
parent | 5d73854b32303db5b764846b70f63c6c951c0458 (diff) |
re-instate the nasty old editing paths as a run-time conditional
Diffstat (limited to 'starmath/inc/node.hxx')
-rw-r--r-- | starmath/inc/node.hxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 493e7e7d03c8..114f7204a236 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -34,9 +34,10 @@ #include <iostream> #include <stdio.h> -//My special assert macro -//TODO: replace this with DBG_ASSERT when this patch moves to production, can be done using search/replace -#define j_assert(cond, msg) do{ \ +#define j_assert(cond, msg) DBG_ASSERT(cond, msg) +#if 0 +// easier to read assert macro + do{ \ if(!(cond)) \ { \ std::cerr<<"Failed assertion: "<<msg<<", at line "; \ @@ -48,7 +49,9 @@ fprintf(stderr, "%d in %s\n", __LINE__, f + 1); \ } \ } while(false) -//TODO: Comment out below to disable dumpasdot +#endif + +// Comment out below to disable dumpasdot #define DEBUG_ENABLE_DUMPASDOT #include "parse.hxx" |