furi_check - a new way to asserting (#204)
* hal-related task_is_isr_context function * furi_check implementation * change application to use furi_check * add second level of assertion * add TODO about ISR context * Applications: refactor furi_check and furi_assert. * Apploader: propwer widget usage. Menu: check on furi resource request. * refactor furi_check Co-authored-by: Aleksandr Kutuzov <aku@plooks.com> Co-authored-by: coreglitch <mail@s3f.ru>
This commit is contained in:
@@ -51,13 +51,12 @@ static void handle_menu(void* _ctx) {
|
||||
|
||||
void app_loader(void* p) {
|
||||
osThreadId_t self_id = osThreadGetId();
|
||||
assert(self_id);
|
||||
furi_check(self_id);
|
||||
|
||||
AppLoaderState state;
|
||||
state.handler = NULL;
|
||||
|
||||
state.widget = widget_alloc();
|
||||
assert(state.widget);
|
||||
widget_enabled_set(state.widget, false);
|
||||
widget_draw_callback_set(state.widget, render_callback, &state);
|
||||
widget_input_callback_set(state.widget, input_callback, &state);
|
||||
|
Reference in New Issue
Block a user