Api Symbols: replace asserts with checks

merge ofw commit
This commit is contained in:
MX
2024-03-25 13:53:32 +03:00
parent 81a16e5a28
commit 585b7f963d
565 changed files with 3544 additions and 2691 deletions

View File

@@ -16,7 +16,7 @@ static bool empty_screen_view_input_callback(InputEvent* event, void* context) {
return false;
}
EmptyScreen* empty_screen_alloc() {
EmptyScreen* empty_screen_alloc(void) {
EmptyScreen* empty_screen = malloc(sizeof(EmptyScreen));
empty_screen->view = view_alloc();
view_set_context(empty_screen->view, empty_screen);
@@ -26,12 +26,12 @@ EmptyScreen* empty_screen_alloc() {
}
void empty_screen_free(EmptyScreen* empty_screen) {
furi_assert(empty_screen);
furi_check(empty_screen);
view_free(empty_screen->view);
free(empty_screen);
}
View* empty_screen_get_view(EmptyScreen* empty_screen) {
furi_assert(empty_screen);
furi_check(empty_screen);
return empty_screen->view;
}