aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Reference-manual.md
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-12-05 01:10:50 +0200
committerGitHub <noreply@github.com>2017-12-05 01:10:50 +0200
commitbc83c58d37421b84c5420356a79e04ade2b851a7 (patch)
tree1c47671d6d458ac4d7ec367d3cac716abedf8da8 /docs/markdown/Reference-manual.md
parent87e6201214eda0941d2a2279e12a575fc27d21bb (diff)
parentd3dcef7efc1df3b7a645eb6dc75c4a66a9131cb9 (diff)
downloadmeson-bc83c58d37421b84c5420356a79e04ade2b851a7.zip
meson-bc83c58d37421b84c5420356a79e04ade2b851a7.tar.gz
meson-bc83c58d37421b84c5420356a79e04ade2b851a7.tar.bz2
Merge pull request #2731 from mesonbuild/disabler
Created disabler object type
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r--docs/markdown/Reference-manual.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 4be06c4..ac83152 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -326,6 +326,10 @@ some branches of a conditional.
The returned object also has methods that are documented in the
[object methods section](#dependency-object) below.
+### disabler()
+
+Returns a [disabler object]((#disabler-object)). Added in 0.44.0.
+
### error()
``` meson
@@ -1631,6 +1635,15 @@ an external dependency with the following methods:
- `version()` is the version number as a string, for example `1.2.8`
+### `disabler` object
+
+A disabler object is an object that behaves in much the same way as
+NaN numbers do in floating point math. That is when used in any
+statement (function call, logical op, etc) they will cause the
+statement evaluation to immediately short circuit to return a disabler
+object. A disabler object has one method:
+
+ - `found()`, always returns `false`
### `external program` object