Ignore:
Timestamp:
Dec 8, 2010, 5:03:02 PM (9 years ago)
Author:
gah
Message:

Clean up debugging/printing traces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/Trace.h

    r1429 r1984  
    99#define AT __FILE__ ":" NEWSTRING(__LINE__)
    1010
    11 extern void Trace(const char* format, ...);
     11extern void PrintMessage(const char *mesg, const char *fileName, int lineNum,
     12                         const char* format, ...);
     13
     14#define ERROR(...)      PrintMessage("Error", __FILE__, __LINE__, __VA_ARGS__)
     15#ifdef WANT_TRACE
     16#define TRACE(...)      PrintMessage("Trace", __FILE__, __LINE__, __VA_ARGS__)
     17#else
     18#define TRACE(...)
     19#endif
     20#define WARN(...)       PrintMessage("Warning", __FILE__, __LINE__, __VA_ARGS__)
     21#define INFO(...)       PrintMessage("Info", __FILE__, __LINE__, __VA_ARGS__)
     22
     23
    1224extern bool CheckFBO(GLenum *statusPtr);
    1325extern void PrintFBOStatus(GLenum status, const char *prefix);
Note: See TracChangeset for help on using the changeset viewer.