aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Reference-manual.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r--docs/markdown/Reference-manual.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index e59c153..71771a5 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1753,6 +1753,18 @@ the following methods:
- `version()` returns the compiler's version number as a string.
+- `has_function_attribute(name)` *(added in 0.48.0)* returns `true` if the
+ compiler supports the GNU style (`__attribute__(...)`) `name`. This is
+ preferable to manual compile checks as it may be optimized for compilers that
+ do not support such attributes.
+ [This table](Reference-tables.html#gcc-attribute-support) Lists all of the
+ supported attributes.
+
+- `get_supported_function_attributes(list_of_names)` *(added in 0.48.0)
+ returns an array containing any names that are supported GCC style
+ attributes. Equivalent to `has_function_attribute` was called on each of them
+ individually.
+
The following keyword arguments can be used:
- `args` can be used to pass a list of compiler arguments that are