]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Similar fix for optimized mode.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jan 2000 14:45:48 +0000 (14:45 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jan 2000 14:45:48 +0000 (14:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@2182 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/exceptions.h

index 01bfce0994a0d5af4b2bee86a2ca03063abf24a2..85ecd00a1fa5a042cad7fb0709d4a142f475b42c 100644 (file)
  *  not recover from programming errors.
  *
  *  If the preprocessor variable #DEBUG# is not set, then nothing
- *  happens, i.e. the #Assert# macro is expanded to #(void) 0;#.
+ *  happens, i.e. the #Assert# macro is expanded to #{}#.
  *
  *  Sometimes, there is no useful condition for an exception other
  *  than that the program flow should not have reached a certain point,
@@ -430,7 +430,7 @@ void __IssueError_Throw (const char *file,
 #else        ////////////////////////////////////////
 
 #define Assert(cond, exc)                     \
-  (void) 0
+  { }
 #endif      ////////////////////////////////////////
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.