diff options
author | John Wiegley <johnw@newartisans.com> | 2006-03-28 05:24:02 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:32 -0400 |
commit | 5a93d4819e5fc753352618b729e0fe45532166b9 (patch) | |
tree | 200220bfcc5642a9efd8847001aeac889ed79e7d /debug.h | |
parent | c3c401ac0f43dfb3f71b818b45ef47578e6d390b (diff) | |
download | ledger-5a93d4819e5fc753352618b729e0fe45532166b9.tar.gz ledger-5a93d4819e5fc753352618b729e0fe45532166b9.tar.bz2 ledger-5a93d4819e5fc753352618b729e0fe45532166b9.zip |
Reworked the way date/times are handled.
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -62,7 +62,8 @@ void debug_assert(const std::string& reason, #include <new> #include <iostream> #include <cstdlib> -#include <ctime> + +#include "datetime.h" #define DEBUG_ENABLED @@ -85,10 +86,8 @@ bool _debug_active(const char * const cls); } #define DEBUG_PRINT_(x) DEBUG_PRINT(_debug_cls, x) -#define DEBUG_PRINT_TIME(cls, x) { \ - char buf[32]; \ - std::strftime(buf, 31, "%Y/%m/%d:%H", std::localtime(&x)); \ - DEBUG_PRINT(cls, #x << " is " << buf); \ +#define DEBUG_PRINT_TIME(cls, x) { \ + DEBUG_PRINT(cls, #x << " is " << x); \ } #define DEBUG_PRINT_TIME_(x) DEBUG_PRINT_TIME(_debug_cls, x) |