Changeset 1174 in svn for trunk/util/xc_trace.h


Ignore:
Timestamp:
2012-11-13T12:30:21Z (3 years ago)
Author:
Xuefer
Message:

show basename for easier trace log reader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/util/xc_trace.h

    r1044 r1174  
    3333}
    3434#   else
     35const char *xc_trace_get_basename(const char *path);
    3536#       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__)
    3738#   endif /* ZEND_WIN32 */
    3839#   undef NDEBUG
Note: See TracChangeset for help on using the changeset viewer.