From 21af83013f3b1bae511a61b9e27224ab3de235c1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 30 Apr 2007 11:22:08 +0000 Subject: Did more work on the utility code. --- src/utils.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index afa0b7a8..f37ec650 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -10,6 +10,8 @@ namespace ledger { +DECLARE_EXCEPTION(assertion_failed); + void debug_assert(const string& reason, const string& func, const string& file, @@ -18,7 +20,7 @@ void debug_assert(const string& reason, std::ostringstream buf; buf << "Assertion failed in \"" << file << "\", line " << line << ": " << reason; - throw exception(buf.str(), context()); + throw assertion_failed(buf.str()); } } // namespace ledger @@ -618,6 +620,7 @@ void finish_timer(const char * name) namespace ledger { std::ostringstream _exc_buffer; +ptr_list context_stack; } // namespace ledger -- cgit v1.2.3