aboutsummaryrefslogtreecommitdiff
path: root/foot-features.h
diff options
context:
space:
mode:
Diffstat (limited to 'foot-features.h')
-rw-r--r--foot-features.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/foot-features.h b/foot-features.h
index cdc8056f..ad447767 100644
--- a/foot-features.h
+++ b/foot-features.h
@@ -2,6 +2,15 @@
#include <stdbool.h>
+static inline bool feature_assertions(void)
+{
+#if defined(NDEBUG)
+ return false;
+#else
+ return true;
+#endif
+}
+
static inline bool feature_ime(void)
{
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED