◆ FIFTYONE_DEGREES_ARRAY_CREATE
#define FIFTYONE_DEGREES_ARRAY_CREATE | ( | t, | |
i, | |||
c | |||
) |
Value:
i = (t##Array*)Malloc(FIFTYONE_DEGREES_ARRAY_SIZE(t,c)); \
if (i != NULL) { \
i->items = (t*)(i + 1); \
i->count = 0; \
i->capacity = c; \
}
#define FIFTYONE_DEGREES_ARRAY_SIZE(t, c)
Works out the size of the array with a given capacity for the type.
Definition: array.h:61
Initialises the array.