mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-28 11:49:10 +00:00
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:
parent
b5ebb234dd
commit
510caff0cd
15 changed files with 49 additions and 43 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue