Go to the source code of this file.
◆ GET_FIELD_FROM_JSON_RETURN_ON_ERROR
| #define GET_FIELD_FROM_JSON_RETURN_ON_ERROR |
( |
|
json, |
|
|
|
name, |
|
|
|
type, |
|
|
|
jtype, |
|
|
|
mandatory, |
|
|
|
def |
|
) |
| |
Value: bool field_##
name##_found =
false; \
(void)field_##
name##_found; \
{ \
{ \
field_##
name##_found =
true; \
} \
else \
{ \
LOG_ERROR(
"Field " << #
name <<
" found in JSON, but not " << #jtype); \
return false; \
} \
} \
else if (mandatory) \
{ \
LOG_ERROR(
"Field " << #
name <<
" not found in JSON"); \
return false; \
} while(0)
type
Definition: json.h:74
basic_json<> json
default JSON class
Definition: json.hpp:14369
const char * name
Definition: simplewallet.cpp:180