Replace SDL_assert() by assert()

SDL_assert() open a dialog on assertion failure.

There is no reason not to use assert() directly.
This commit is contained in:
Romain Vimont 2019-11-27 21:11:40 +01:00
commit 510caff0cd
15 changed files with 49 additions and 43 deletions

View file

@ -1,6 +1,6 @@
#include "controller.h"
#include <SDL2/SDL_assert.h>
#include <assert.h>
#include "config.h"
#include "util/lock.h"
@ -85,7 +85,8 @@ run_controller(void *data) {
}
struct control_msg msg;
bool non_empty = cbuf_take(&controller->queue, &msg);
SDL_assert(non_empty);
assert(non_empty);
(void) non_empty;
mutex_unlock(controller->mutex);
bool ok = process_msg(controller, &msg);