Macros | |
| #define | _COMPILER_VERSION |
| #define | ARRAY(_t, _n, _m) |
Defines a portable replacement for run-time sized local arrays and for alloca().
| #define ARRAY | ( | _t, | |
| _n, | |||
| _m | |||
| ) |
Makes a run-time sized array for local storage.
In gcc and other compilers that support it, this turns into "type name[n]".
In other systems this turns into calls to alloca().
In others still (Windows) it turns into C++ templates that rely on the destructor to get the same result, though much less efficiently.
| ©2025 The Foundry Visionmongers, Ltd. All Rights Reserved. |