* @see ExceptionBase
* @author Wolfgang Bangerth, November 1997, extensions 1998
*/
-#define Assert(cond, exc) \
- if (!(cond)) \
- __IssueError_Assert (__FILE__, \
- __LINE__, \
- __PRETTY_FUNCTION__, #cond, #exc, exc)
+#define Assert(cond, exc) \
+ { \
+ if (!(cond)) \
+ __IssueError_Assert (__FILE__, \
+ __LINE__, \
+ __PRETTY_FUNCTION__, #cond, #exc, exc);\
+ }
#else ////////////////////////////////////////
* @see ExceptionBase
* @author Wolfgang Bangerth, November 1997, extensions 1998
*/
-#define AssertThrow(cond, exc) \
- if (!(cond)) \
- __IssueError_Throw (__FILE__, \
- __LINE__, \
- __PRETTY_FUNCTION__, #cond, #exc, exc)
+#define AssertThrow(cond, exc) \
+ { \
+ if (!(cond)) \
+ __IssueError_Throw (__FILE__, \
+ __LINE__, \
+ __PRETTY_FUNCTION__, #cond, #exc, exc);\
+ }
class Exception1 : public ExceptionBase { \
public: \
Exception1 (const type1 a1) : arg1 (a1) {}; \
- virtual void PrintInfo (ostream &out) const { \
+ virtual void PrintInfo (ostream &out) const { \
out outsequence << endl; \
}; \
private: \