Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
identstrings.h File Reference
Set of helper macros to obtain the names of identifiers. More...
Go to the source code of this file.
Classes | |
class | csIdentStrings |
Helper class that contains a list of identifiers and their names. More... | |
Defines | |
#define | CS_IDENT_STRING_LIST(ListName) static csIdentStrings::csIdentString ListName##_strings[] = { |
Begin an identifier list. | |
#define | CS_IDENT_STRING(Ident) {Ident, #Ident}, |
Entry in the identifier list. | |
#define | CS_IDENT_STRING_EXPLICIT(Ident, Str) {Ident, str}, |
Entry in the identifier list, but with an explicitly set name. | |
#define | CS_IDENT_STRING_LIST_END(ListName) |
End an identifier list. |
Detailed Description
Set of helper macros to obtain the names of identifiers.
Definition in file identstrings.h.
Define Documentation
|
Entry in the identifier list.
Definition at line 90 of file identstrings.h. |
|
Entry in the identifier list, but with an explicitly set name.
Definition at line 95 of file identstrings.h. |
|
Begin an identifier list.
Example: CS_IDENT_STRING_LIST(FooNames) CS_IDENT_STRING(FOO_BAR) CS_IDENT_STRING(FOO_BAZ) CS_IDENT_STRING_LIST_END(FooNames) csPrintf ("%s\n", FooNames.StringForIdent (foo)); Definition at line 84 of file identstrings.h. |
|
Value: {0, 0} \ }; \ static csIdentStrings ListName (ListName##_strings, \ (sizeof (ListName##_strings) / sizeof (csIdentStrings::csIdentString)) - 1);
Definition at line 99 of file identstrings.h. |
Generated for Crystal Space by doxygen 1.3.9.1