Freeciv-3.3
|
Go to the source code of this file.
Macros | |
#define | SPECENUM_PASTE_(x, y) x ## y |
#define | SPECENUM_PASTE(x, y) SPECENUM_PASTE_(x, y) |
#define | SPECENUM_STRING_(x) #x |
#define | SPECENUM_STRING(x) SPECENUM_STRING_(x) |
#define | SPECENUM_FOO(suffix) SPECENUM_PASTE(SPECENUM_NAME, suffix) |
#define | SPECENUM_INVALID ((enum SPECENUM_NAME) -1) |
#define | SPECENUM_VALUE(value) (value) |
Enumerations | |
enum | SPECENUM_NAME |
Functions | |
fc__attribute ((const)) static inline bool SPECENUM_FOO(_is_bitwise)(void) | |
static enum SPECENUM_NAME SPECENUM_FOO() | _by_name (const char *name, int(*strcmp_func)(const char *, const char *)) |
#define SPECENUM_FOO | ( | suffix | ) | SPECENUM_PASTE(SPECENUM_NAME, suffix) |
Definition at line 140 of file specenum_gen.h.
#define SPECENUM_INVALID ((enum SPECENUM_NAME) -1) |
Definition at line 143 of file specenum_gen.h.
Definition at line 135 of file specenum_gen.h.
#define SPECENUM_STRING | ( | x | ) | SPECENUM_STRING_(x) |
Definition at line 138 of file specenum_gen.h.
Definition at line 137 of file specenum_gen.h.
#define SPECENUM_VALUE | ( | value | ) | (value) |
Definition at line 155 of file specenum_gen.h.
Definition at line 169 of file specenum_gen.h.
|
inlinestatic |
Returns the enumerator for the name or *_invalid() if not found.
Definition at line 7162 of file specenum_gen.h.
fc__attribute | ( | (const) | ) |
Returns TRUE if this enumeration is in bitwise mode.
Returns the value of the minimal enumerator.
Returns the value of the maximal enumerator.
Returns TRUE if this enumerator was defined.
Returns an invalid enumerator value.
Beginning of the iteration of the enumerators.
End of the iteration of the enumerators.
Find the next valid enumerator value.
Returns the name of the enumerator.
Returns the translated name of the enumerator.
Definition at line 3182 of file specenum_gen.h.