Changeset 19177 for titan/titan/debug.h


Ignore:
Timestamp:
Dec 19, 2012, 1:25:02 AM (7 years ago)
Author:
nit
Message:

[titan] cleanup code / fix memleak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/debug.h

    r15367 r19177  
    2323#define perr(fmt, args...) { do { fprintf(stderr, "[%s] error: " fmt, PROGNAME, ##args); } while (0); fprintf(stderr, ", err=%m, file=%s, func=%s, line=%d\n", __FILE__, __FUNCTION__, __LINE__); }
    2424
     25#define filedebug(file, fmt, args...) { FILE* fd = fopen(file, "a"); if(fd != NULL) { do { fprintf(fd, "" fmt, ##args); } while (0); fprintf(fd, "\n"); fclose(fd); }}
     26
    2527#endif
Note: See TracChangeset for help on using the changeset viewer.