Added a value_t macro: VALUE_OR_VERO
This commit is contained in:
parent
17cbb9d210
commit
d3c93b73cb
1 changed files with 2 additions and 0 deletions
|
|
@ -930,6 +930,8 @@ inline value_t string_value(const string& str) {
|
|||
return value_t(str, true);
|
||||
}
|
||||
|
||||
#define VALUE_OR_ZERO(val) ((val).is_null() ? value_t(0L) : (val))
|
||||
|
||||
inline value_t mask_value(const string& str) {
|
||||
return value_t(mask_t(str));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue