debug: rework asserts

This commit is contained in:
Gabor Kiss-Vamosi
2019-09-24 23:14:17 +02:00
parent 366f958e1a
commit 5660181b81
45 changed files with 264 additions and 155 deletions

View File

@@ -54,14 +54,14 @@ lv_obj_t * lv_line_create(lv_obj_t * par, const lv_obj_t * copy)
/*Create a basic object*/
lv_obj_t * new_line = lv_obj_create(par, copy);
LV_ASSERT_NO_MEM(new_line);
LV_ASSERT_MEM(new_line);
if(new_line == NULL) return NULL;
if(ancestor_signal == NULL) ancestor_signal = lv_obj_get_signal_cb(new_line);
/*Extend the basic object to line object*/
lv_line_ext_t * ext = lv_obj_allocate_ext_attr(new_line, sizeof(lv_line_ext_t));
LV_ASSERT_NO_MEM(ext);
LV_ASSERT_MEM(ext);
if(ext == NULL) return NULL;
ext->point_num = 0;