Extent
These utilities are for handling extents (arrays and pointers) in C and C++.
-
ZTD_PTR_EXTENT(...)
Provides the
T arg[static N]
functionality (“sized at least `N` large” hint).Remark
Expands to the proper notation for C compilers, and expands to nothing for C++ compilers. It is meant to be used as in the declaration:
void f(T arg[ZTD_PTR_EXTENT(N)]);
.- Parameters
... – [in] An expression which computes the intended size of the pointer argument.