diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-03 14:00:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 14:00:47 +0300 |
commit | ec5baa62c8d8c578630a0962bbeea49bedd16a24 (patch) | |
tree | 05dffb3b12b45ab500f0c3ea6e40edef4cce1db1 /docs/markdown/snippets | |
parent | f21685a83330a4bbe1e59c3641a0d24f1efe8825 (diff) | |
parent | bc4201a7f1e93d6afb62caa8ce81bb1b0211b70c (diff) | |
download | meson-ec5baa62c8d8c578630a0962bbeea49bedd16a24.zip meson-ec5baa62c8d8c578630a0962bbeea49bedd16a24.tar.gz meson-ec5baa62c8d8c578630a0962bbeea49bedd16a24.tar.bz2 |
Merge pull request #8950 from dcbaker/submit/import-required-disabled
Add required and disabled to import, modules.found method
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/required_and_disabled_import.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/required_and_disabled_import.md b/docs/markdown/snippets/required_and_disabled_import.md new file mode 100644 index 0000000..39ca307 --- /dev/null +++ b/docs/markdown/snippets/required_and_disabled_import.md @@ -0,0 +1,5 @@ +## The `import()` function gains `required` and `disabler` arguments + +In addition, modules now have a `found()` method, like programs and +dependencies. This allows them to be conditionally required, and used in most +places that an object with a `found()` method can be. |