ARRAY.h File Reference

Macros

#define _COMPILER_VERSION
 
#define ARRAY(_t, _n, _m)
 

Detailed Description

Defines a portable replacement for run-time sized local arrays and for alloca().

Macro Definition Documentation

#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.

Referenced by DD::Image::DrawIop::pixel_engine().



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk