fixed move_container bug, log prints before aborting

This commit is contained in:
taiyu 2015-08-26 16:27:01 -07:00
parent eb53f173c5
commit 274e56a602
2 changed files with 8 additions and 5 deletions

View file

@ -105,15 +105,15 @@ bool _sway_assert(bool condition, const char* format, ...) {
return true;
}
#ifndef NDEBUG
raise(SIGABRT);
#endif
va_list args;
va_start(args, format);
sway_log(L_ERROR, format, args);
va_end(args);
#ifndef NDEBUG
raise(SIGABRT);
#endif
return false;
}