1 parent 722397c commit 33e381bCopy full SHA for 33e381b
1 file changed
include/once.h
@@ -4,8 +4,10 @@
4
#define ONCE() \
5
do { \
6
static int _called_once_flag_##__LINE__ = 0; \
7
- if (_called_once_flag_##__LINE__) \
+ if (_called_once_flag_##__LINE__) { \
8
wlr_log(WLR_ERROR, "Function %s called more than once", __func__); \
9
+ exit(1); \
10
+ } \
11
_called_once_flag_##__LINE__ = 1; \
12
} while(0)
13
#else
0 commit comments