Skip to content

Glossary: Swift Beyond the Basics

macro

Also written: macros

Code that writes code at compile time. Macros only add to what you wrote, and the compiler checks the added code like your own.

Where the book teaches it

Related terms

freestanding macroattached macromacro expansionswift-syntax