X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fassertion.h;h=ad07c9b67cf6cc8371ef2e02399dfdfc8175d0cf;hb=79027a83f1cfc56ba1afe98659c35eeabad9024a;hp=39bb4f4e37fcc0afc2709ef078d809f01c3fd6a1;hpb=9eab44408b9213d8909b7a9e525f404ad06064dd;p=ginac.git diff --git a/ginac/assertion.h b/ginac/assertion.h index 39bb4f4e..ad07c9b6 100644 --- a/ginac/assertion.h +++ b/ginac/assertion.h @@ -3,7 +3,7 @@ * Assertion macro definition. */ /* - * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2000 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 @@ -23,12 +23,16 @@ #ifndef __GINAC_ASSERTION_H__ #define __GINAC_ASSERTION_H__ +extern "C" { #include +} -#if defined(DO_GINAC_ASSERT) && !defined(ASSERT) -#define ASSERT(X) assert(X) +#if !defined(GINAC_ASSERT) +#if defined(DO_GINAC_ASSERT) +#define GINAC_ASSERT(X) assert(X) #else -#define ASSERT(X) ((void)0) +#define GINAC_ASSERT(X) ((void)0) +#endif #endif #endif // ndef __GINAC_ASSERTION_H__