summaryrefslogtreecommitdiff
path: root/src/format.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/format.h')
-rw-r--r--src/format.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/format.h b/src/format.h
index f5d665c6..939d6a7e 100644
--- a/src/format.h
+++ b/src/format.h
@@ -150,6 +150,12 @@ public:
const int account_abbrev_length = -1);
};
+#define FMT_PREFIX "fmt_"
+#define FMT_PREFIX_LEN 4
+
+#define WANT_FMT() \
+ (std::strncmp(p, FMT_PREFIX, FMT_PREFIX_LEN) == 0)
+
} // namespace ledger
#endif // _FORMAT_H