blob: 7429fff8a670df564687c407a94a07884469b28b [file]
---
title: 'macro'
---
A callable Starlark value representing a symbolic macro; in other words, the return value of
[`macro()`](/versions/8.6.0/rules/lib/globals/bzl#macro). Invoking this value during package
construction time will instantiate the macro, and cause the macro's implementation function to be
evaluated (in a separate context, different from the context in which the macro value was invoked),
in most cases causing targets to be added to the package's target set. For more information, see
[Macros](https://bazel.build/versions/8.6.0/extending/macros).