comparison src/lisp.h @ 5021:4e784bfabae7

fix bad defn of disabled inline assert -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-02-09 Ben Wing <ben@xemacs.org> * lisp.h: Disabled inline assert should just use disabled_assert() not disabled_assert_at_line() otherwise you get compile errors. (Hasn't bitten us only because no one is currently using inline asserts -- but this is different in the Unicode-internal repo.)
author Ben Wing <ben@xemacs.org>
date Tue, 09 Feb 2010 06:49:57 -0600
parents eadd99984bfb
children 838630c0734f
comparison
equal deleted inserted replaced
5020:eadd99984bfb 5021:4e784bfabae7
163 #define DISABLED_INLINE_ERROR_CHECK_CALL 163 #define DISABLED_INLINE_ERROR_CHECK_CALL
164 164
165 /* For assertions in inline header functions which will report the file and 165 /* For assertions in inline header functions which will report the file and
166 line of the calling function */ 166 line of the calling function */
167 #define inline_assert(assertion) assert_at_line (assertion, __file__, __line__) 167 #define inline_assert(assertion) assert_at_line (assertion, __file__, __line__)
168 #define disabled_inline_assert(assertion) \ 168 /* The following should not use disabled_assert_at_line() because when the
169 disabled_assert_at_line (assertion, __file__, __line__) 169 inline assert is disabled, params __file__ and __line__ do not exist. */
170 #define disabled_inline_assert(assertion) disabled_assert (assertion)
170 171
171 #ifdef ERROR_CHECK_TEXT 172 #ifdef ERROR_CHECK_TEXT
172 #define text_checking_assert(assertion) assert (assertion) 173 #define text_checking_assert(assertion) assert (assertion)
173 #define text_checking_assert_at_line(assertion, file, line) \ 174 #define text_checking_assert_at_line(assertion, file, line) \
174 assert_at_line (assertion, file, line) 175 assert_at_line (assertion, file, line)