P99

◆ P99_DEFINE_ENUM

#define P99_DEFINE_ENUM (   T)
Value:
P99_INSTANTIATE(char const*, P99_PASTE2(T, _getname), T); \
P99_INSTANTIATE(T, P99_PASTE2(T, _parse), char const*)

Define the necessary symbols for a simple enumeration type.

See also
P99_DECLARE_ENUM
Remarks
argument 0 should correspond to a type that is not a VLA.

Definition at line 178 of file p99_enum.h.

P99_PASTE2
#define P99_PASTE2(_1, _2)
Paste two token sequences at their junction.
Definition: p99_paste.h:82
P99_INSTANTIATE
#define P99_INSTANTIATE(RT, NAME,...)
Instantiate an inline function.
Definition: p99_defarg.h:241