From 3155ab45fe392f1dd4984f034d6048f8d79a2228 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 23 Oct 2021 15:40:54 +0200 Subject: foot/client: version info: add +/- assertions --- foot-features.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'foot-features.h') 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 +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 -- cgit v1.3