mywiki:linux:enum_string
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mywiki:linux:enum_string [2015/06/26 15:49] – super | mywiki:linux:enum_string [2019/09/15 18:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| ====== map enum to string array ====== | ====== map enum to string array ====== | ||
| + | < | ||
| #undef DP_F_ENUM_OR_STRING | #undef DP_F_ENUM_OR_STRING | ||
| #define DP_F_ENUM_OR_STRING(name, | #define DP_F_ENUM_OR_STRING(name, | ||
| Line 28: | Line 28: | ||
| }; | }; | ||
| #undef DP_F_ENUM_OR_STRING | #undef DP_F_ENUM_OR_STRING | ||
| + | </ | ||
| ====== map enum to an value array ====== | ====== map enum to an value array ====== | ||
| + | < | ||
| #undef DP_F_ENUM_OR_STRING | #undef DP_F_ENUM_OR_STRING | ||
| - | #define DP_F_ENUM_OR_STRING(name, | + | #define DP_F_ENUM_OR_STRING(name, |
| uint32_t dp_port_flag[] = { | uint32_t dp_port_flag[] = { | ||
| DP_F_FLAG_LIST | DP_F_FLAG_LIST | ||
| }; | }; | ||
| #undef DP_F_ENUM_OR_STRING | #undef DP_F_ENUM_OR_STRING | ||
| + | </ | ||
mywiki/linux/enum_string.1435304981.txt.gz · Last modified: (external edit)
