summaryrefslogtreecommitdiff
path: root/ucoo/common.hh
diff options
context:
space:
mode:
authorNicolas Schodet2015-06-08 15:03:43 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commitb8b771030310d57ff811c3028cb629c4ebdc0809 (patch)
treeb337e67c691c9299ca934d3147bbb1a5058f8b41 /ucoo/common.hh
parentb17f8244eda5a3849d1af0a93744e345ae07d090 (diff)
ucoo: assert should always be inlined
Diffstat (limited to 'ucoo/common.hh')
-rw-r--r--ucoo/common.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ucoo/common.hh b/ucoo/common.hh
index be6f91d..24ead61 100644
--- a/ucoo/common.hh
+++ b/ucoo/common.hh
@@ -58,6 +58,8 @@ halt_perror () __attribute__ ((noreturn));
/// To be used to swear that the given condition is true. If this is not the
/// case... well... you swore!
+void
+assert (bool condition) __attribute__ ((always_inline));
extern inline void
assert (bool condition)
{