diff options
Diffstat (limited to 'sway/log.c')
-rw-r--r-- | sway/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -105,15 +105,15 @@ bool _sway_assert(bool condition, const char* format, ...) { | |||
105 | return true; | 105 | return true; |
106 | } | 106 | } |
107 | 107 | ||
108 | #ifndef NDEBUG | ||
109 | raise(SIGABRT); | ||
110 | #endif | ||
111 | |||
112 | va_list args; | 108 | va_list args; |
113 | va_start(args, format); | 109 | va_start(args, format); |
114 | sway_log(L_ERROR, format, args); | 110 | sway_log(L_ERROR, format, args); |
115 | va_end(args); | 111 | va_end(args); |
116 | 112 | ||
113 | #ifndef NDEBUG | ||
114 | raise(SIGABRT); | ||
115 | #endif | ||
116 | |||
117 | return false; | 117 | return false; |
118 | } | 118 | } |
119 | 119 | ||