diff options
Diffstat (limited to 'src/tests/tracer.cpp')
-rw-r--r-- | src/tests/tracer.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/tests/tracer.cpp b/src/tests/tracer.cpp new file mode 100644 index 0000000..52ce0d7 --- /dev/null +++ b/src/tests/tracer.cpp | |||
@@ -0,0 +1,28 @@ | |||
1 | |||
2 | #define BU_TRACE | ||
3 | #include "bu/trace.h" | ||
4 | |||
5 | void doThing3( int x, const char *bob, void *p ) | ||
6 | { | ||
7 | TRACE( x, bob, p ); | ||
8 | } | ||
9 | |||
10 | void doThing2( int x, const char *bob ) | ||
11 | { | ||
12 | TRACE( x, bob ); | ||
13 | } | ||
14 | |||
15 | void doThing( int x ) | ||
16 | { | ||
17 | TRACE( x ); | ||
18 | } | ||
19 | |||
20 | int main( int argc, char *argv[] ) | ||
21 | { | ||
22 | doThing( 54 ); | ||
23 | doThing2( 128, "Hello" ); | ||
24 | doThing3( 266, "Goodbye", argv ); | ||
25 | |||
26 | return 0; | ||
27 | } | ||
28 | |||