summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-07 10:27:21 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:39 -0400
commitd8498372037a4d0c272547ae48046b2182bcd4b1 (patch)
treeea3f228c5b6b20d71456e47a418e383669925d5f /src/utils.h
parenta71d48881e538630aa1d147d58365da84e6db91f (diff)
downloadfork-ledger-d8498372037a4d0c272547ae48046b2182bcd4b1.tar.gz
fork-ledger-d8498372037a4d0c272547ae48046b2182bcd4b1.tar.bz2
fork-ledger-d8498372037a4d0c272547ae48046b2182bcd4b1.zip
Major restructuring of the value_t class.
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/utils.h b/src/utils.h
index f95e5dc0..8ff142ca 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -473,8 +473,8 @@ inline void throw_func(const std::string& message) {
#define throw_(cls, msg) \
((_exc_buffer << msg), throw_func<cls>(_exc_buffer.str()))
-inline void throw_unexpected_error(char c, char wanted) {
#if 0
+inline void throw_unexpected_error(char c, char wanted) {
if (c == -1) {
if (wanted)
throw new error(string("Missing '") + wanted + "'");
@@ -487,8 +487,11 @@ inline void throw_unexpected_error(char c, char wanted) {
else
throw new error(string("Invalid char '") + c + "'");
}
-#endif
}
+#else
+inline void throw_unexpected_error(char, char) {
+}
+#endif
} // namespace ledger