X macros are an idiomatic usage of programming language macros for generating list-like structures of data or code. They are most useful when at least some of the lists cannot be composed by indexing, such as compile time. They provide reliable maintenance of parallel lists whose corresponding items must be declared or executed in the same order.
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.[1] It remains useful in modern-day C and C++ programming languages, but remains relatively unknown.[2][3]
^Meyers, Randy. The New C: X Macros. Dr.Dobb's 2001.
^Bright, Walter. The X Macro. Digital Mars 2010
^Lucas, Andrew. Reduce C-language coding errors with X macros. Embedded.com 2013
Xmacros are an idiomatic usage of programming language macros for generating list-like structures of data or code. They are most useful when at least...
other typesetting tasks, especially in the form of LaTeX, ConTeXt, and other macro packages. TeX was designed with two main goals in mind: to allow anybody...
Arabic and Greek. LaTeX uses the TeX typesetting program for formatting its output, and is itself written in the TeXmacro language. LaTeX can be used as a...
The C preprocessor is the macro preprocessor for several computer programming languages, such as C, Objective-C, C++, and a variety of Fortran languages...
In computer science, hygienic macros are macros whose expansion is guaranteed not to cause the accidental capture of identifiers. They are a feature of...
since LaTeX, ConTeXt et al. are simply macro packages for TeX, they work equally well with pdfTeX. Hence, pdflatex, for example, calls the pdfTeX program...
support macros. Metaclasses are provided by the following programming languages: Common Lisp Python Nil Groovy Ruby Smalltalk Lua C "XMacros" C++ Templates...
Word for DOS was different. The Word 6.0 for DOS macro language was compatible with the Word 3.x-5.xmacro language while Word 6.0 for Windows and Word 6...
of AoS. Code generators for the C language, including Datadraw and the XMacro technique. Automated creation of AoSoA is more complex. An example of AoSoA...
calculation or computation capabilities, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications (VBA). Excel forms...
supersedes and expands on the abilities of earlier application-specific macro programming languages such as Word's WordBASIC. It can be used to control...
styles without learning the low-level TeXmacro language. While comparisons can be made between ConTeXt and LaTeX, the primary objectives of the two systems...
features of the full MASM, such as the ability to use code macros. MS-DOS versions up to 4.x included Microsoft's LINK utility, which was designed to convert...
extensions of LaTeX and TeX respectively CircuiTikZ - adds creation of electrical networks (adds on to TikZ) REVTeX - collection of LaTeXmacros used for scientific...
A variadic macro is a feature of some computer programming languages, especially the C preprocessor, whereby a macro may be declared to accept a varying...
A lolcat (pronounced /ˈlɒlkæt/ LOL-kat), or LOLcat, is an image macro of one or more cats. Lolcat images' idiosyncratic and intentionally grammatically...
haplogroup S, haplogroup I, haplogroup W, haplogroup X and haplogroup Y, as well as macro-haplogroup R. Macro-haplogroup R is found mostly in Europe, Northern...
undergraduates. Spivak also wrote The Joy of TeX: A Gourmet Guide to Typesetting with the AMS-TeXMacro Package and The Hitchhiker's Guide to Calculus...
typesetting. TeX is mainly used in academia, where it is a de facto standard in many scientific disciplines. A TeXmacro package known as LaTeX provides a...
(2): 59–63. Spivak, Michael (1986). The Joy of TeX: A Gourmet Guide to Typesetting with the AMS-TeXMacro Package. American Mathematical Society. p. 260...
learn on its own, and deals more with appearance than structure. The LaTeXmacro package, written by Leslie Lamport at the beginning of the 1980s, offered...
that it would later become its standard macro package. This set of macros would later become known as LaTeX, for which Lamport would subsequently be...