aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-12-12 14:45:05 +0000
committerMike Buland <eichlan@xagasoft.com>2007-12-12 14:45:05 +0000
commitba4167f75c8f7ba8726132eed94af3ae6cd38eee (patch)
tree22314ff631f8895e443842f3203cf109c2ab0bfd /src/tests
parent42e91b48b003dae34edd8f41b82ba0d7ffa67d16 (diff)
downloadlibbu++-ba4167f75c8f7ba8726132eed94af3ae6cd38eee.tar.gz
libbu++-ba4167f75c8f7ba8726132eed94af3ae6cd38eee.tar.bz2
libbu++-ba4167f75c8f7ba8726132eed94af3ae6cd38eee.tar.xz
libbu++-ba4167f75c8f7ba8726132eed94af3ae6cd38eee.zip
Added the new TRACE test.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/tracer.cpp28
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
5void doThing3( int x, const char *bob, void *p )
6{
7 TRACE( x, bob, p );
8}
9
10void doThing2( int x, const char *bob )
11{
12 TRACE( x, bob );
13}
14
15void doThing( int x )
16{
17 TRACE( x );
18}
19
20int main( int argc, char *argv[] )
21{
22 doThing( 54 );
23 doThing2( 128, "Hello" );
24 doThing3( 266, "Goodbye", argv );
25
26 return 0;
27}
28