|
libcute 0.1
|


Go to the source code of this file.
Macros | |
| #define | CU_OPTIONAL_NAME(NAME) NAME##_Optional |
| #define | CU_OPTIONAL_FN(NAME, SUFFIX) CU_CONCAT(CU_OPTIONAL_NAME(NAME), SUFFIX) |
| #define | CU_OPTIONAL_HEADER(NAME, T) |
| #define | CU_OPTIONAL_DECL(NAME, T) |
| #define | CU_OPTIONAL_IMPL(NAME, T) |
Generic optional helper macros.
| #define CU_OPTIONAL_DECL | ( | NAME, | |
| T | |||
| ) |
Declare the optional struct and associated functions.
| #define CU_OPTIONAL_FN | ( | NAME, | |
| SUFFIX | |||
| ) | CU_CONCAT(CU_OPTIONAL_NAME(NAME), SUFFIX) |
Construct an optional helper function name.
| #define CU_OPTIONAL_HEADER | ( | NAME, | |
| T | |||
| ) |
Declare optional helper functions for a given type.
| #define CU_OPTIONAL_IMPL | ( | NAME, | |
| T | |||
| ) |
Define the implementation of the optional helpers.
| #define CU_OPTIONAL_NAME | ( | NAME | ) | NAME##_Optional |
Build the concrete optional type name for a category.