summaryrefslogtreecommitdiff
path: root/common/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/ring.h')
-rw-r--r--common/ring.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/ring.h b/common/ring.h
index 91d4794..0194959 100644
--- a/common/ring.h
+++ b/common/ring.h
@@ -21,16 +21,17 @@
#include <stddef.h>
+#ifndef ASSERT
+# include <assert.h>
+# define ASSERT(X) assert(X)
+#endif
+
typedef struct Ring RingItem;
typedef struct Ring {
RingItem *prev;
RingItem *next;
} Ring;
-#ifndef ASSERT
-# define ASSERT(X)
-#endif
-
static inline void ring_init(Ring *ring)
{
ring->next = ring->prev = ring;