aboutsummaryrefslogtreecommitdiff
path: root/include/apos/builtin.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-29 16:23:41 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-29 16:23:41 +0300
commitd7cb08134102b7a2410c48d2a1802193f9031e00 (patch)
tree711498836d6679ca2fc3b4ba9369b7fe53d7a3fa /include/apos/builtin.h
parente148f38dc937c34b222ba8df8612b3fa2b6bc349 (diff)
downloadkmi-d7cb08134102b7a2410c48d2a1802193f9031e00.tar.gz
kmi-d7cb08134102b7a2410c48d2a1802193f9031e00.zip
continue documentation efforts
Diffstat (limited to 'include/apos/builtin.h')
-rw-r--r--include/apos/builtin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/apos/builtin.h b/include/apos/builtin.h
index b6ce0e0..6869361 100644
--- a/include/apos/builtin.h
+++ b/include/apos/builtin.h
@@ -10,6 +10,14 @@
* we'll be golden.
*/
+/**
+ * Check whether compiler supports the builtin.
+ * Note that this definition is only for when the compiler doesn't provide it
+ * automatically.
+ *
+ * @param x Base name of builtin to check for.
+ * @return \c 0 when not supported, non-zero when supported.
+ */
#ifndef __has_builtin
#define __has_builtin(x) (0)
#endif