summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-06 03:30:45 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-06 03:30:45 -0400
commita085f8e9aded8a6a198e874fadb580990fd37969 (patch)
tree60dfcf798a093540f455a9ba5ac1ed979df22e4f /src/amount.h
parentb4662911cc4388f740f73fcc6adad78b6c27a315 (diff)
downloadfork-ledger-a085f8e9aded8a6a198e874fadb580990fd37969.tar.gz
fork-ledger-a085f8e9aded8a6a198e874fadb580990fd37969.tar.bz2
fork-ledger-a085f8e9aded8a6a198e874fadb580990fd37969.zip
Only initialize the amount_t module if it hasn't been already.
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h
index 4405e058..e4abeb0b 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -92,6 +92,8 @@ public:
@note Normally called by session_t::shutdown(). */
static void shutdown();
+ static bool is_initialized;
+
/** The amount's decimal precision. */
typedef uint_least16_t precision_t;