[mw_shl_code=c,true]PACK_STRUCT_BEGIN struct ip_reass_helper { PACK_STRUCT_FIELD(struct pbuf *next_pbuf);/*不知道这里的PACK_STRUCT_FIELD()是什么意思???*/ PACK_STRUCT_FIELD(u16_t start); PACK_STRUCT_FIELD(u16_t end); } PACK_STRUCT_STRUCT; PACK_STRUCT_END [/mw_shl_code] 最佳答...
#define PACK_STRUCT_FIELD(x) x __attribute__((packed)) #define PACK_STRUCT_FIELD(x) x __attribute__((packed)) 无意中看到的,这个宏怎么解释阿?望大侠指教。
std::string s; struct_json::to_json(tp, s); but struct_pack can reflect member names in c++20 after refactor, and the code will be more simpler, you can serialize a struct pack struct to json directly, no need transfer it to a tuple any more....
unsignedinttimeout; void*special;/* opaque pointer available for LLD use */ interrors; unsigned longdeadline; structtimeout_list; unsignedinttimeout; /*