diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-26 16:27:01 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-26 16:27:01 -0700 |
commit | 274e56a60256214d1f899c37f1c978e4b8470644 (patch) | |
tree | e0f7f77e41abd84da02208d7a09b610411c58fbb /sway/log.c | |
parent | Merge pull request #137 from minus7/json (diff) | |
download | sway-274e56a60256214d1f899c37f1c978e4b8470644.tar.gz sway-274e56a60256214d1f899c37f1c978e4b8470644.tar.zst sway-274e56a60256214d1f899c37f1c978e4b8470644.zip |
fixed move_container bug, log prints before aborting
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 | ||