diff options
Diffstat (limited to '')
| -rw-r--r-- | src/trace.cpp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/trace.cpp b/src/trace.cpp index 906ce54..03181e9 100644 --- a/src/trace.cpp +++ b/src/trace.cpp | |||
| @@ -12,69 +12,6 @@ void Bu::__tracer( const char *pf ) | |||
| 12 | printf("trace: %s\n", pf ); | 12 | printf("trace: %s\n", pf ); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | template<> void Bu::__tracer_format<int8_t>( const int8_t &v ) | ||
| 16 | { | ||
| 17 | printf("%hhd", v ); | ||
| 18 | } | ||
| 19 | |||
| 20 | template<> void Bu::__tracer_format<uint8_t>( const uint8_t &v ) | ||
| 21 | { | ||
| 22 | printf("%hhu", v ); | ||
| 23 | } | ||
| 24 | |||
| 25 | template<> void Bu::__tracer_format<int16_t>( const int16_t &v ) | ||
| 26 | { | ||
| 27 | printf("%hd", v ); | ||
| 28 | } | ||
| 29 | |||
| 30 | template<> void Bu::__tracer_format<uint16_t>( const uint16_t &v ) | ||
| 31 | { | ||
| 32 | printf("%hu", v ); | ||
| 33 | } | ||
| 34 | |||
| 35 | template<> void Bu::__tracer_format<int32_t>( const int32_t &v ) | ||
| 36 | { | ||
| 37 | printf("%d", v ); | ||
| 38 | } | ||
| 39 | |||
| 40 | template<> void Bu::__tracer_format<uint32_t>( const uint32_t &v ) | ||
| 41 | { | ||
| 42 | printf("%u", v ); | ||
| 43 | } | ||
| 44 | |||
| 45 | template<> void Bu::__tracer_format<int64_t>( const int64_t &v ) | ||
| 46 | { | ||
| 47 | printf("%lld", v ); | ||
| 48 | } | ||
| 49 | |||
| 50 | template<> void Bu::__tracer_format<uint64_t>( const uint64_t &v ) | ||
| 51 | { | ||
| 52 | printf("%llu", v ); | ||
| 53 | } | ||
| 54 | |||
| 55 | template<> void Bu::__tracer_format<bool>( const bool &v ) | ||
| 56 | { | ||
| 57 | if( v ) | ||
| 58 | printf("true"); | ||
| 59 | else | ||
| 60 | printf("false"); | ||
| 61 | } | ||
| 62 | |||
| 63 | template<> void Bu::__tracer_format<char>( const char &v ) | ||
| 64 | { | ||
| 65 | printf("%hhd", v ); | ||
| 66 | } | ||
| 67 | |||
| 68 | template<> void Bu::__tracer_format<long>( const long &v ) | ||
| 69 | { | ||
| 70 | printf("%ld", v ); | ||
| 71 | } | ||
| 72 | |||
| 73 | template<> void Bu::__tracer_format<unsigned long>( const unsigned long &v ) | ||
| 74 | { | ||
| 75 | printf("%lu", v ); | ||
| 76 | } | ||
| 77 | |||
| 78 | template<> void Bu::__tracer_format<float>( const float &v ) | 15 | template<> void Bu::__tracer_format<float>( const float &v ) |
| 79 | { | 16 | { |
| 80 | printf("%f", v ); | 17 | printf("%f", v ); |
