aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-04-10 15:01:05 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2018-10-23 22:09:55 +0300
commit61348da069bd3afe28a9de03e7792e20a9cb2eac (patch)
tree1db7fc90efbda6f95d7c5332788ca7b3da88e95f /docs/markdown/snippets
parent87355c81326edd253f433f08e8d58f9df059951f (diff)
downloadmeson-61348da069bd3afe28a9de03e7792e20a9cb2eac.zip
meson-61348da069bd3afe28a9de03e7792e20a9cb2eac.tar.gz
meson-61348da069bd3afe28a9de03e7792e20a9cb2eac.tar.bz2
Add 'disabler' argument to functions returning not-found objects
When dependency(), find_library(), find_program(), or python.find_installation() return a not-found object and disabler is true, they return a Disabler object instead.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/disabler.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/snippets/disabler.md b/docs/markdown/snippets/disabler.md
new file mode 100644
index 0000000..76874f6
--- /dev/null
+++ b/docs/markdown/snippets/disabler.md
@@ -0,0 +1,6 @@
+## Return `Disabler()` instead of not-found object
+
+Functions such as `dependency()`, `find_library()`, `find_program()`, and
+`python.find_installation()` have a new keyword argument: `disabler`. When set
+to `true` those functions return `Disabler()` objects instead of not-found
+objects.