summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-05 02:24:39 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-05 02:27:42 -0500
commit817f1ae1619df06f06f79f772f075041bb70f751 (patch)
treef5714d8dcbf249e1ad3df18b35d297b8ae6c7c71 /src/utils.h
parent3dc200983d5057a7760aeb9e864479c902d7e1d7 (diff)
downloadfork-ledger-817f1ae1619df06f06f79f772f075041bb70f751.tar.gz
fork-ledger-817f1ae1619df06f06f79f772f075041bb70f751.tar.bz2
fork-ledger-817f1ae1619df06f06f79f772f075041bb70f751.zip
std::string now only intercepted if STRING_VERIFY_ON
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h
index c3d3cf24..a8784a66 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -62,6 +62,10 @@
#define TIMERS_ON 1
#endif
+#if defined(VERIFY_ON)
+//#define STRING_VERIFY_ON 1
+#endif
+
/*@}*/
/**
@@ -72,7 +76,7 @@
namespace ledger {
using namespace boost;
-#if defined(VERIFY_ON)
+#if defined(STRING_VERIFY_ON)
class string;
#else
typedef std::string string;
@@ -158,6 +162,8 @@ void trace_dtor_func(void * ptr, const char * cls_name, std::size_t cls_size);
void report_memory(std::ostream& out, bool report_all = false);
+#if defined(STRING_VERIFY_ON)
+
/**
* @brief Brief
*
@@ -236,6 +242,8 @@ inline bool operator!=(const char* __lhs, const string& __rhs)
inline bool operator!=(const string& __lhs, const char* __rhs)
{ return __lhs.compare(__rhs) != 0; }
+#endif // STRING_VERIFY_ON
+
} // namespace ledger
#else // ! VERIFY_ON