aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/slibc/features.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/slibc/features.h b/include/slibc/features.h
index f62f5cb..b6fc406 100644
--- a/include/slibc/features.h
+++ b/include/slibc/features.h
@@ -80,6 +80,16 @@
#endif
+/**
+ * Macro used to exclude code unless `_SLIBC_SOURCE` is set.
+ */
+#if defined(_SLIBC_SOURCE)
+# define __SLIBC_ONLY(...) __VA_ARGS__
+#else
+# define __SLIBC_ONLY(...) /* ignore */
+#endif
+
+
#endif