src/common.h

changeset 523
a12e36f2db5f
parent 515
a0ad72800b96
child 525
4f6e46a3bfc3
equal deleted inserted replaced
522:afa691788bdb 523:a12e36f2db5f
141 #ifdef assert 141 #ifdef assert
142 # undef assert 142 # undef assert
143 #endif // assert 143 #endif // assert
144 144
145 #ifdef DEBUG 145 #ifdef DEBUG
146 # define assert(N) ((N) ? (void) 0 : assertionFailure (__FILE__, __LINE__, FUNCNAME, #N)) 146 # define assert(N) { ((N) ? (void) 0 : assertionFailure (__FILE__, __LINE__, FUNCNAME, #N)) }
147 #else 147 #else
148 # define assert(N) 148 # define assert(N) {}
149 #endif // DEBUG 149 #endif // DEBUG
150 150
151 // Version string identifier 151 // Version string identifier
152 QString versionString(); 152 QString versionString();
153 QString versionMoniker(); 153 QString versionMoniker();

mercurial