O
Size: a a a
O
O
Т8
I
IO
IO
IO
Т8
IO
DECLARE_STRUCT(test)
BEGIN
DECLARE_FIELD(bool,b);
DECLARE_FIELD(bool,b2);
DECLARE_FIELD(bool,b3);
END
Е
IO
Е
IO
Е
#ifndef declare_field
#define declare_field(type, field_name) \
type field_name; \
template<typename Dummy__ > \
struct field_info<__COUNTER__-current_counter-1,Dummy__> \
{ constexpr static std::string_view name = #field_name;}
#endif
#ifndef declare_struct
#define declare_struct template<size_t N,class Dummy = void> struct field_info; \
static constexpr bool is_parsable = true;\
static constexpr int current_counter = __COUNTER__;
#endif
#endif
Е
Е
#ifndef declare_field
#define declare_field(type, field_name) \
type field_name; \
template<typename Dummy__ > \
struct field_info<__COUNTER__-current_counter-1,Dummy__> \
{ constexpr static std::string_view name = #field_name;}
#endif
#ifndef declare_struct
#define declare_struct template<size_t N,class Dummy = void> struct field_info; \
static constexpr bool is_parsable = true;\
static constexpr int current_counter = __COUNTER__;
#endif
#endif
O
#ifndef declare_field
#define declare_field(type, field_name) \
type field_name; \
template<typename Dummy__ > \
struct field_info<__COUNTER__-current_counter-1,Dummy__> \
{ constexpr static std::string_view name = #field_name;}
#endif
#ifndef declare_struct
#define declare_struct template<size_t N,class Dummy = void> struct field_info; \
static constexpr bool is_parsable = true;\
static constexpr int current_counter = __COUNTER__;
#endif
#endif
current_counter используется?