diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-12-12 17:06:16 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-12-12 17:06:16 +0000 |
commit | 7eb00b6d3037a7e30c326b43e23502f777b92eb6 (patch) | |
tree | 60013b086b3682c68192ad2ac8337e221ec9eba9 /src/fstring.cpp | |
parent | ba4167f75c8f7ba8726132eed94af3ae6cd38eee (diff) | |
download | libbu++-7eb00b6d3037a7e30c326b43e23502f777b92eb6.tar.gz libbu++-7eb00b6d3037a7e30c326b43e23502f777b92eb6.tar.bz2 libbu++-7eb00b6d3037a7e30c326b43e23502f777b92eb6.tar.xz libbu++-7eb00b6d3037a7e30c326b43e23502f777b92eb6.zip |
Corrected some issues with the new trace system. It's now working fine. It's backword compatible, and the new features are a lot of fun. Since it uses template functions you can add any new variable types to be formatted.
Diffstat (limited to '')
-rw-r--r-- | src/fstring.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fstring.cpp b/src/fstring.cpp index f1ddd2c..d278914 100644 --- a/src/fstring.cpp +++ b/src/fstring.cpp | |||
@@ -5,6 +5,9 @@ | |||
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #define BU_TRACE | ||
9 | #include "bu/trace.h" | ||
10 | |||
8 | #include "fstring.h" | 11 | #include "fstring.h" |
9 | #include "hash.h" | 12 | #include "hash.h" |
10 | 13 | ||
@@ -34,3 +37,8 @@ std::basic_ostream<char>& operator<< (std::basic_ostream<char> &os, const Bu::FS | |||
34 | return os; | 37 | return os; |
35 | } | 38 | } |
36 | 39 | ||
40 | |||
41 | template<> void Bu::__tracer_format<Bu::FString>( const Bu::FString &v ) | ||
42 | { | ||
43 | printf("(%ld)\"%s\"", v.getSize(), v.getStr() ); | ||
44 | } | ||