libmya 0.1.0
Library to parse Mya language.
|
Go to the source code of this file.
Macros | |
#define | ARR_ARG(type, ...) |
Returns an array compound literal with the given type and then this size. | |
#define | ARR_TT(...) |
Same as ARR_ARG() macro, but with the specific type token_type_t. | |
#define ARR_ARG | ( | type, | |
... ) |
Returns an array compound literal with the given type and then this size.
It should be used with functions that expects arguments like: fun(int *arr, size_t arr_size);
Example: fun(ARR_ARG(char, 1, 2, 3));
Definition at line 12 of file macro_utils.h.
#define ARR_TT | ( | ... | ) |
Same as ARR_ARG() macro, but with the specific type token_type_t.
Definition at line 17 of file macro_utils.h.