Skip to content
Latchkey

Macro - CI/CD Glossary Definition

A macro is a named code fragment expanded inline before or during compilation, used for constants and code generation.

A macro is a named fragment of code that the preprocessor (or a language macro system) expands inline before compilation. In C, #define MAX 100 substitutes text; in Rust, macros generate code at compile time.

A macro is a named fragment of code that the preprocessor (or a language macro system) expands inline before compilation. In C, #define MAX 100 substitutes text; in Rust, macros generate code at compile time.

In CI

Macros expand at build time, so a macro error is a compile failure caught in the pipeline, not a run-time bug. Macro-heavy code can slow compilation noticeably, which shows up as longer CI build stages.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →