Define a recursive macro RECURSIVE_NAME
More...
Macros | |
#define | RECURSIVE(...) |
The recursive call of the macro RECURSIVE_NAME. | |
#define | RECURSIVE_BODY |
The body of the macro RECURSIVE_NAME. | |
#define | RECURSIVE_NAME |
The name that is to be defined. | |
#define | RECURSIVE_PARAMETERS |
The list of parameters for RECURSIVE_NAME. | |
Define a recursive macro RECURSIVE_NAME
This needs three macros to be defined: RECURSIVE_NAME, RECURSIVE_PARAMETERS and RECURSIVE_BODY, and will typically use the macro RECURSIVE to call itself.
The following shows an example how ELLIPSIS_SUM could be defined.
#define RECURSIVE | ( | ... | ) |
The recursive call of the macro RECURSIVE_NAME.
This behaves as if it were defined as accepting arguments as given in RECURSIVE_PARAMETERS and expands to RECURSIVE_BODY.
#define RECURSIVE_BODY |
The body of the macro RECURSIVE_NAME.
Here the name RECURSIVE may be used to call the macro recursively.
#define RECURSIVE_NAME |
The name that is to be defined.
This will be defined as a functional macro with a parameter list as in RECURSIVE_PARAMETERS.
#define RECURSIVE_PARAMETERS |
The list of parameters for RECURSIVE_NAME.
This should have at least one named argument and should terminate with a ...
such as in