summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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