Changeset 2760


Ignore:
Timestamp:
Aug 13, 2006, 1:31:35 AM (19 years ago)
Author:
bird
Message:

skip the part of the file path which isn't interesting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/synergy/lib/base/CLog.cpp

    r2758 r2760  
    126126        int pPad = g_priorityPad;
    127127        if (file != NULL) {
     128#ifdef __OS2__ /* only last two levels (very annoying otherwise). */
     129        const size_t cchPrefix = sizeof(__FILE__) - sizeof("lib/base/CLog.cpp");
     130        if (!strncmp(file, __FILE__, cchPrefix)) {
     131            file += cchPrefix;
     132        }
     133#endif
    128134                sprintf(stack, "%d", line);
    129135                pPad += strlen(file) + 1 /* comma */ +
Note: See TracChangeset for help on using the changeset viewer.