diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-12-06 13:11:59 -0500 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2018-12-24 11:12:11 -0500 |
commit | ff2aa5a9ef48bc083e01d7af578799fc4eada764 (patch) | |
tree | 3fc730c29f373ab1e104ed65ce8d316ad62739bb /docs/markdown | |
parent | 4df9006ca43338fea07b9d542f94da34369e43d3 (diff) | |
download | meson-ff2aa5a9ef48bc083e01d7af578799fc4eada764.zip meson-ff2aa5a9ef48bc083e01d7af578799fc4eada764.tar.gz meson-ff2aa5a9ef48bc083e01d7af578799fc4eada764.tar.bz2 |
Add 'required' kwarg in header check functions
Closes: #3940
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Reference-manual.md | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 8d0d123..f2d2129 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1760,7 +1760,9 @@ the following methods: the `prefix` keyword. In order to look for headers in a specific directory you can use `args : '-I/extra/include/dir`, but this should only be used in exceptional cases for includes that can't be - detected via pkg-config and passed via `dependencies`. + detected via pkg-config and passed via `dependencies`. Since *0.50.0* the + `required` keyword argument can be used to abort if the header cannot be + found. - `has_header` returns true if the specified header *exists*, and is faster than `check_header()` since it only does a pre-processor check. @@ -1769,13 +1771,16 @@ the following methods: the `prefix` keyword. In order to look for headers in a specific directory you can use `args : '-I/extra/include/dir`, but this should only be used in exceptional cases for includes that can't be - detected via pkg-config and passed via `dependencies`. + detected via pkg-config and passed via `dependencies`. Since *0.50.0* the + `required` keyword argument can be used to abort if the header cannot be + found. - `has_header_symbol(headername, symbolname)` allows one to detect whether a particular symbol (function, variable, #define, type definition, etc) is declared in the specified header, you can specify external dependencies to use with `dependencies` keyword - argument. + argument. Since *0.50.0* the `required` keyword argument can be used to abort + if the symbol cannot be found. - `has_member(typename, membername)` takes two arguments, type name and member name and returns true if the type has the specified |