diff options
Diffstat (limited to 'site/docs/skylark/macros.md')
-rw-r--r-- | site/docs/skylark/macros.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/site/docs/skylark/macros.md b/site/docs/skylark/macros.md index 1970227e58..5ed162b4d4 100644 --- a/site/docs/skylark/macros.md +++ b/site/docs/skylark/macros.md @@ -1,8 +1,6 @@ Macros ====== -**Status: Stable** - Macro creation -------------- @@ -13,7 +11,11 @@ anymore: Bazel sees only the set of rules they created. Native rules can be instantiated from the `native` module, e.g. ```python -native.cc_library(name = x) +def my_macro(name): + native.cc_library( + name = name, + srcs = ["main.cc"], + ) ``` If you need to know the package name (i.e. which BUILD file is calling the |