Changeset 8948da in git
- Timestamp:
- May 5, 2010, 1:02:52 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 30e9c5fe8b6de1896b6bd3fd27b0cad11d6549a5
- Parents:
- 3de81d0751fbbbc4448d3fd2531c9a6166149a7c
- git-author:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2010-05-05 13:02:52+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:50:25+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
output/output.h
r3de81d0 r8948da 107 107 char* SPrintEnd(); 108 108 109 #ifndef HAVE_ASSUME 110 #define assume(x) ((void) 0) 111 #define r_assume(x) ((void) 0) 112 #else /* ! HAVE_ASSUME */ 113 114 #define assume_violation(s,f,l) \ 115 dReportError("assume violation at %s:%d condition: %s", f,l,s) 116 117 #define assume(x) _assume(x, __FILE__, __LINE__) 118 #define r_assume(x) _r_assume(x, __FILE__, __LINE__) 119 120 #define _assume(x, f, l) \ 121 do \ 122 { \ 123 if (! (x)) \ 124 { \ 125 assume_violation(#x, f, l); \ 126 } \ 127 } \ 128 while (0) 129 130 #define _r_assume(x, f, l) \ 131 do \ 132 { \ 133 if (! (x)) \ 134 { \ 135 assume_violation(#x, f, l); \ 136 return 0; \ 137 } \ 138 } \ 139 while (0) 140 #endif /* HAVE_ASSUME */ 109 141 110 142 #endif /* ifndef OUTPUT_H */
Note: See TracChangeset
for help on using the changeset viewer.