JavaScript is disabled
Our website requires JavaScript to function properly. For a better experience, please enable JavaScript in your browser settings before proceeding.
X Macros are a technique for reliable maintenance of parallel lists of code and/or data, whose corresponding items must be declared or executed in the same order. They are most useful where at least some of the lists cannot be composed by indexing, such as compile time.
Examples of such lists particularly include initialization of arrays, in concert with declarations of enumeration constants and function prototypes; generation of statement sequences and switch arms; etc.
Usage of X Macros dates back to the 1960s. It remains useful also in modern-day C and C++ programming languages, but remains relatively unknown.

View More On Wikipedia.org
Back Top