diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-12-12 14:45:05 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-12-12 14:45:05 +0000 |
commit | ba4167f75c8f7ba8726132eed94af3ae6cd38eee (patch) | |
tree | 22314ff631f8895e443842f3203cf109c2ab0bfd | |
parent | 42e91b48b003dae34edd8f41b82ba0d7ffa67d16 (diff) | |
download | libbu++-ba4167f75c8f7ba8726132eed94af3ae6cd38eee.tar.gz libbu++-ba4167f75c8f7ba8726132eed94af3ae6cd38eee.tar.bz2 libbu++-ba4167f75c8f7ba8726132eed94af3ae6cd38eee.tar.xz libbu++-ba4167f75c8f7ba8726132eed94af3ae6cd38eee.zip |
Added the new TRACE test.
-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 | |||