diff options
Diffstat (limited to '')
-rw-r--r-- | src/trace.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/trace.h b/src/trace.h index 0ebd831..51dfb8e 100644 --- a/src/trace.h +++ b/src/trace.h | |||
@@ -13,6 +13,8 @@ | |||
13 | #include <stddef.h> | 13 | #include <stddef.h> |
14 | #include <string.h> | 14 | #include <string.h> |
15 | 15 | ||
16 | #include <bu/sio.h> | ||
17 | |||
16 | namespace Bu | 18 | namespace Bu |
17 | { | 19 | { |
18 | /* template<typename t> void __tracer_format( t &v ) | 20 | /* template<typename t> void __tracer_format( t &v ) |
@@ -20,7 +22,10 @@ namespace Bu | |||
20 | __tracer_format( *const_cast<const t *>(&v) ); | 22 | __tracer_format( *const_cast<const t *>(&v) ); |
21 | } | 23 | } |
22 | */ | 24 | */ |
23 | template<typename t> void __tracer_format( const t &v ); | 25 | template<typename t> void __tracer_format( const t &v ) |
26 | { | ||
27 | Bu::sio << v; | ||
28 | } | ||
24 | 29 | ||
25 | void __tracer( const char *pf ); | 30 | void __tracer( const char *pf ); |
26 | 31 | ||
@@ -163,18 +168,6 @@ namespace Bu | |||
163 | } | 168 | } |
164 | #undef looper | 169 | #undef looper |
165 | 170 | ||
166 | template<> void __tracer_format<int8_t>( const int8_t &v ); | ||
167 | template<> void __tracer_format<uint8_t>( const uint8_t &v ); | ||
168 | template<> void __tracer_format<int16_t>( const int16_t &v ); | ||
169 | template<> void __tracer_format<uint16_t>( const uint16_t &v ); | ||
170 | template<> void __tracer_format<int32_t>( const int32_t &v ); | ||
171 | template<> void __tracer_format<uint32_t>( const uint32_t &v ); | ||
172 | template<> void __tracer_format<int64_t>( const int64_t &v ); | ||
173 | template<> void __tracer_format<uint64_t>( const uint64_t &v ); | ||
174 | template<> void __tracer_format<bool>( const bool &v ); | ||
175 | template<> void __tracer_format<char>( const char &v ); | ||
176 | template<> void __tracer_format<long>( const long &v ); | ||
177 | template<> void __tracer_format<unsigned long>( const unsigned long &v ); | ||
178 | template<> void __tracer_format<float>( const float &v ); | 171 | template<> void __tracer_format<float>( const float &v ); |
179 | template<> void __tracer_format<double>( const double &v ); | 172 | template<> void __tracer_format<double>( const double &v ); |
180 | template<> void __tracer_format<void *>( void * const &v ); | 173 | template<> void __tracer_format<void *>( void * const &v ); |