forked from lthn/blockchain
warning fixed
This commit is contained in:
parent
65dfe90526
commit
56b6260348
1 changed files with 6 additions and 6 deletions
|
|
@ -74,8 +74,8 @@ public: \
|
|||
#define KV_MAKE_VAR_NAME() VARNAME(val_tmp_name)
|
||||
|
||||
#define KV_SERIALIZE_N(varialble, val_name) \
|
||||
using KV_MAKE_ALIAS_NAME() = decltype(this_ref.varialble); \
|
||||
const char* KV_MAKE_VAR_NAME() = val_name;\
|
||||
using KV_MAKE_ALIAS_NAME() [[maybe_unused]] = decltype(this_ref.varialble); \
|
||||
[[maybe_unused]] const char* KV_MAKE_VAR_NAME() = val_name;\
|
||||
epee::serialization::selector<is_store>::serialize(this_ref.varialble, stg, hparent_section, val_name);
|
||||
|
||||
//#define KV_SERIALIZE_N_DOC(varialble, val_name) \
|
||||
|
|
@ -126,13 +126,13 @@ public: \
|
|||
|
||||
|
||||
#define KV_SERIALIZE_CUSTOM_N(varialble, stored_type, from_v_to_stored, from_stored_to_v, val_name) \
|
||||
using KV_MAKE_ALIAS_NAME() = stored_type; \
|
||||
const char* VARNAME(val_tmp_name) = val_name;\
|
||||
using KV_MAKE_ALIAS_NAME() [[maybe_unused]] = stored_type; \
|
||||
[[maybe_unused]] const char* VARNAME(val_tmp_name) = val_name;\
|
||||
epee::serialization::selector<is_store>::template serialize_custom<stored_type>(this_ref.varialble, stg, hparent_section, val_name, from_v_to_stored, from_stored_to_v);
|
||||
|
||||
#define KV_SERIALIZE_EPHEMERAL_N(stored_type, from_v_to_stored, val_name) \
|
||||
using KV_MAKE_ALIAS_NAME() = stored_type; \
|
||||
const char* VARNAME(val_tmp_name) = val_name;\
|
||||
using KV_MAKE_ALIAS_NAME() [[maybe_unused]] = stored_type; \
|
||||
[[maybe_unused]] const char* VARNAME(val_tmp_name) = val_name;\
|
||||
epee::serialization::selector<is_store>::template serialize_ephemeral<stored_type>(this_ref, stg, hparent_section, val_name, from_v_to_stored);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue