[mathicgb] 13/393: Made mathicgb turn asserts on/off based on MATHICGB_DEBUG rather than DEBUG.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:58:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch upstream
in repository mathicgb.
commit c1c06144b49933433f6a1ba82a64939ef9258639
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date: Sun Aug 5 14:52:50 2012 -0400
Made mathicgb turn asserts on/off based on MATHICGB_DEBUG rather than DEBUG.
---
src/mathicgb/stdinc.h | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/src/mathicgb/stdinc.h b/src/mathicgb/stdinc.h
old mode 100644
new mode 100755
index 99fe632..7ebdd64
--- a/src/mathicgb/stdinc.h
+++ b/src/mathicgb/stdinc.h
@@ -1,5 +1,5 @@
#ifdef STDINC_GUARD
-#error stdinc.h included twice
+#error stdinc.h included twice. Only include stdinc.h once per cpp file.
#endif
#define STDINC_GUARD
@@ -32,19 +32,17 @@
// obviously easily go wrong, but it is pretty useful to do as well,
// so the warning is turned off.
#pragma warning (disable: 4355)
-
-#if (defined _DEBUG) && (!defined DEBUG)
-#define DEBUG
-#endif
-
#endif
#include <cstddef>
#include <memory>
-#ifdef DEBUG
+#ifdef MATHICGB_DEBUG
+// we have to define DEBUG as lots of code assumes that asserts are turned
+// on/off depending on DEBUG. Those should change to checking
+// MATHICGB_DEBUG and then we can remove this define.
+#define DEBUG
#include <iostream> // Useful for debugging.
-#define PRINT
#include <cassert>
#define ASSERT(X) assert(X);
#define IF_DEBUG(X) X
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mathicgb.git
More information about the debian-science-commits
mailing list