source: trunk/packages/vizservers/nanovis/Trace.h @ 2096

Last change on this file since 2096 was 2096, checked in by ldelgass, 14 years ago

Normalize line endings, set eol-style to native on *.cpp, *.h files

  • Property svn:eol-style set to native
File size: 813 bytes
RevLine 
[848]1#ifndef __TRACE_H__
2#define __TRACE_H__
3
[1199]4#include <GL/glew.h>
5#include <GL/glut.h>
[1991]6#include <syslog.h>
[1199]7
[1429]8#define MAKE_STRING(x) #x
9#define NEWSTRING(x) MAKE_STRING(x)
10#define AT __FILE__ ":" NEWSTRING(__LINE__)
11
[1991]12extern void LogMessage(int priority, const char *fileName, int lineNum,
[1984]13                         const char* format, ...);
14
[1991]15#define ERROR(...)      LogMessage(LOG_ERR, __FILE__, __LINE__, __VA_ARGS__)
[1984]16#ifdef WANT_TRACE
[1991]17#define TRACE(...)      LogMessage(LOG_DEBUG, __FILE__, __LINE__, __VA_ARGS__)
[1984]18#else
19#define TRACE(...)
20#endif
[1991]21#define WARN(...)       LogMessage(LOG_WARNING, __FILE__, __LINE__, __VA_ARGS__)
22#define INFO(...)       LogMessage(LOG_INFO, __FILE__, __LINE__, __VA_ARGS__)
[1984]23
24
[1200]25extern bool CheckFBO(GLenum *statusPtr);
26extern void PrintFBOStatus(GLenum status, const char *prefix);
27extern bool CheckGL(const char *prefix);
[848]28#endif
Note: See TracBrowser for help on using the repository browser.