diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-10 12:22:19 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-10 12:22:19 -0500 |
commit | 5ffa987daf4d97c52066e4c28733d826d3726297 (patch) | |
tree | ab058dec32702ccce9d1f7cacacb5b5c157d6798 /src/value.h | |
parent | 9e07e61fadf7f3c9d1fd32a3805f6e97163eba15 (diff) | |
parent | 3f638d355c977fd5513ab1db380c5813599f3664 (diff) | |
download | fork-ledger-5ffa987daf4d97c52066e4c28733d826d3726297.tar.gz fork-ledger-5ffa987daf4d97c52066e4c28733d826d3726297.tar.bz2 fork-ledger-5ffa987daf4d97c52066e4c28733d826d3726297.zip |
Merge branch 'next'
Diffstat (limited to 'src/value.h')
-rw-r--r-- | src/value.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/value.h b/src/value.h index 94002bef..96a3078a 100644 --- a/src/value.h +++ b/src/value.h @@ -946,6 +946,8 @@ inline value_t string_value(const string& str = "") { } #define VALUE_OR_ZERO(val) ((val).is_null() ? value_t(0L) : (val)) +#define SIMPLIFIED_VALUE_OR_ZERO(val) \ + ((val).is_null() ? value_t(0L) : (val).simplified()) inline value_t mask_value(const string& str) { return value_t(mask_t(str)); |