diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-15 15:29:29 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-15 15:29:29 +0200 |
commit | 1a6f70ef940f527ab69c6db1e82ae4e9280379da (patch) | |
tree | 7ea102d68d388082dd4fd3b6728ad66cdb3069bc /src/system.hh.in | |
parent | 57fb9abd4355fae4b923403f4bcf51013d16e2c2 (diff) | |
download | fork-ledger-1a6f70ef940f527ab69c6db1e82ae4e9280379da.tar.gz fork-ledger-1a6f70ef940f527ab69c6db1e82ae4e9280379da.tar.bz2 fork-ledger-1a6f70ef940f527ab69c6db1e82ae4e9280379da.zip |
Move DEBUG_MODE related defines to system.hh.in
Diffstat (limited to 'src/system.hh.in')
-rw-r--r-- | src/system.hh.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/system.hh.in b/src/system.hh.in index 35253962..52c8a706 100644 --- a/src/system.hh.in +++ b/src/system.hh.in @@ -73,6 +73,29 @@ #cmakedefine01 DEBUG_MODE #cmakedefine01 NO_ASSERTS +/** + * @name Default values + */ +/*@{*/ + +#if DEBUG_MODE +#define DEBUG_ON 1 +#define VERIFY_ON 1 +#define TRACING_ON 1 +#elif NO_ASSERTS +#define DEBUG_ON 0 +#define VERIFY_ON 0 +#define TRACING_ON 0 +#else +#define DEBUG_ON 0 +#define VERIFY_ON 0 +#define TRACING_ON 1 // use --trace X to enable +#endif + +#define LOGGING_ON 1 + +/*@}*/ + #define DOCUMENT_MODEL 0 #define REDUCE_TO_INTEGER 0 |