Skip to content

Commit

Permalink
Added dASSERT(cond)
Browse files Browse the repository at this point in the history
Signed-off-by: Jed Brown <jed@59A2.org>
  • Loading branch information
jedbrown committed Nov 2, 2008
1 parent e1e041b commit b1eb5a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/dohptype.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,6 @@ typedef unsigned char dEntStatus;
PetscStackPop; \
return;}

#define dASSERT(cond) if (!(cond)) { dERROR(1,"Assertion failed: " #cond); }

#endif /* _DOHPTYPE_H */

0 comments on commit b1eb5a7

Please sign in to comment.