Last change
on this file since 2825 was
2822,
checked in by ldelgass, 13 years ago
|
Const correctness fixes, pass vector/matrix objects by reference, various
formatting and style cleanups, don't spam syslog and uncomment openlog() call.
Still needs to be compiled with -DWANT_TRACE to get tracing, but now trace
output will be output to file in /tmp.
|
-
Property svn:eol-style set to
native
|
File size:
858 bytes
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | #ifndef __TRACE_H__ |
---|
3 | #define __TRACE_H__ |
---|
4 | |
---|
5 | #include <GL/glew.h> |
---|
6 | #include <syslog.h> |
---|
7 | |
---|
8 | #define MAKE_STRING(x) #x |
---|
9 | #define NEWSTRING(x) MAKE_STRING(x) |
---|
10 | #define AT __FILE__ ":" NEWSTRING(__LINE__) |
---|
11 | |
---|
12 | extern void LogMessage(int priority, const char *fileName, int lineNum, |
---|
13 | const char* format, ...); |
---|
14 | |
---|
15 | #define ERROR(...) LogMessage(LOG_ERR, __FILE__, __LINE__, __VA_ARGS__) |
---|
16 | #ifdef WANT_TRACE |
---|
17 | #define TRACE(...) LogMessage(LOG_DEBUG, __FILE__, __LINE__, __VA_ARGS__) |
---|
18 | #else |
---|
19 | #define TRACE(...) |
---|
20 | #endif |
---|
21 | #define WARN(...) LogMessage(LOG_WARNING, __FILE__, __LINE__, __VA_ARGS__) |
---|
22 | #define INFO(...) LogMessage(LOG_INFO, __FILE__, __LINE__, __VA_ARGS__) |
---|
23 | |
---|
24 | |
---|
25 | extern bool CheckFBO(GLenum *statusPtr); |
---|
26 | extern void PrintFBOStatus(GLenum status, const char *prefix); |
---|
27 | extern bool CheckGL(const char *prefix); |
---|
28 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.