Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (28 sloc) 0.577 kb
a9461cd initializing repo from version 0.10.2 minus the example files
Julian authored
1 #ifndef INCLUDE_BLASSIC_TRACE_H
2 #define INCLUDE_BLASSIC_TRACE_H
3
4 // trace.h
5 // Revision 7-feb-2005
6
7 #include <cstddef>
8 #include <string>
9
10
11 class TraceFunc {
12 public:
13 TraceFunc (const char * strFuncName);
14 ~TraceFunc ();
15 void message (const std::string & str);
16 static void show (int);
17 private:
18 const char * strfunc;
19 TraceFunc * * previous;
20 TraceFunc * next;
21 };
22
23 #ifndef NDEBUG
24
25 #define TRACEFUNC(tr,name) \
26 TraceFunc tr (name)
27 #define TRMESSAGE(tr,text) \
28 tr.message (text)
29
30 #else
31
32 #define TRACEFUNC(tr,name)
33 #define TRMESSAGE(tr,text)
34
35 #endif
36
37 #endif
38
39 // Fin de trace.h
Something went wrong with that request. Please try again.