]> www.ginac.de Git - ginac.git/blobdiff - ginac/assertion.h
- (a+b)*gamma5 was incorrectly rewritten as -gamma5*(a+b)
[ginac.git] / ginac / assertion.h
index 39bb4f4e37fcc0afc2709ef078d809f01c3fd6a1..f9d9e533870d7c919fc5535de1bf3a924405b83f 100644 (file)
@@ -3,7 +3,7 @@
  *  Assertion macro definition. */
 
 /*
- *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
 #ifndef __GINAC_ASSERTION_H__
 #define __GINAC_ASSERTION_H__
 
-#include <assert.h>
-
-#if defined(DO_GINAC_ASSERT) && !defined(ASSERT)
-#define ASSERT(X) assert(X)
+#if !defined(GINAC_ASSERT)
+#if defined(DO_GINAC_ASSERT)
+#include <cassert>
+/** Assertion macro for checking invariances. */
+#define GINAC_ASSERT(X) assert(X)
 #else
-#define ASSERT(X) ((void)0)
+/** Assertion macro for checking invariances. */
+#define GINAC_ASSERT(X) ((void)0)
+#endif
 #endif
 
 #endif // ndef __GINAC_ASSERTION_H__