Changeset 1174 in svn
- Timestamp:
- 2012-11-13T12:30:21Z (7 years ago)
- Location:
- trunk/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/util/xc_trace.c
r990 r1174 1 #include "php.h" 1 2 #include "xc_trace.h" 2 3 #include <stdio.h> 3 4 #include <stdarg.h> 5 #include <string.h> 4 6 7 const char *xc_trace_get_basename(const char *path) /* {{{ */ 8 { 9 const char *last_separator = strrchr(path, PHP_DIR_SEPARATOR); 10 return last_separator ? last_separator + 1 : path; 11 } 12 /* }}} */ 5 13 int xc_vtrace(const char *fmt, va_list args) /* {{{ */ 6 14 { -
trunk/util/xc_trace.h
r1044 r1174 33 33 } 34 34 # else 35 const char *xc_trace_get_basename(const char *path); 35 36 # define TRACE(fmt, ...) \ 36 xc_trace("%s:%d: " fmt "\r\n", __FILE__, __LINE__, __VA_ARGS__)37 xc_trace("%s:%d: " fmt "\r\n", xc_trace_get_basename(__FILE__), __LINE__, __VA_ARGS__) 37 38 # endif /* ZEND_WIN32 */ 38 39 # undef NDEBUG
Note: See TracChangeset
for help on using the changeset viewer.