Changeset 600 for branches/1.3/utils.h
- Timestamp:
- 2009-07-05T07:36:11+02:00 (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
- Property svn:ignore
-
old new 32 32 run-tests.php 33 33 structinfo.m4 34 autom4te.cache 34 35 tags 35 36
-
- Property svn:mergeinfo changed
/trunk merged: 347-352,355
- Property svn:ignore
-
branches/1.3/utils.h
r593 r600 4 4 #ifdef DEBUG 5 5 # define IFDEBUG(x) (x) 6 # define TRACE(fmt, ...) \ 7 xc_trace("%s:%d: " fmt "\r\n", __FILE__, __LINE__, __VA_ARGS__) 6 int xc_vtrace(const char *fmt, va_list args); 8 7 int xc_trace(const char *fmt, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2); 8 9 # ifdef ZEND_WIN32 10 static inline int TRACE(const char *fmt, ...) 11 { 12 va_list args; 13 int ret; 14 15 va_start(args, fmt); 16 ret = xc_vtrace(fmt, args); 17 va_end(args); 18 return ret; 19 } 20 # else 21 # define TRACE(fmt, ...) \ 22 xc_trace("%s:%d: " fmt "\r\n", __FILE__, __LINE__, __VA_ARGS__) 23 # endif /* ZEND_WIN32 */ 9 24 # undef NDEBUG 10 25 # undef inline 11 26 # define inline 12 #else 13 # define TRACE(fmt, ...) do { } while (0) 27 #else /* DEBUG */ 28 29 # ifdef ZEND_WIN32 30 static inline int TRACE_DUMMY(const char *fmt, ...) 31 { 32 return 0; 33 } 34 # define TRACE 1 ? 0 : TRACE_DUMMY 35 # else 36 # define TRACE(fmt, ...) do { } while (0) 37 # endif /* ZEND_WIN32 */ 38 14 39 # define IFDEBUG(x) do { } while (0) 15 40 # ifndef NDEBUG 16 41 # define NDEBUG 17 42 # endif 18 #endif 43 #endif /* DEBUG */ 19 44 #include <assert.h> 20 45
Note: See TracChangeset
for help on using the changeset viewer.

