mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-05 15:35:50 +00:00
assert: Fix. Move useful functions from wrapped assert functions
Moved useful functions from wrapped assert functions, because option `CONFIG_OPTIMIZATION_ASSERTIONS_DISABLED=y` will remove this functions. Closes https://github.com/espressif/esp-idf/issues/2068
This commit is contained in:

committed by
Ivan Grokhotkov

parent
21fd581265
commit
f9affb9fb8
@@ -182,7 +182,8 @@ void *multi_heap_malloc(multi_heap_handle_t heap, size_t size)
|
||||
data = poison_allocated_region(head, size);
|
||||
#ifdef SLOW
|
||||
/* check everything we got back is FREE_FILL_PATTERN & swap for MALLOC_FILL_PATTERN */
|
||||
assert( verify_fill_pattern(data, size, true, true, true) );
|
||||
bool ret = verify_fill_pattern(data, size, true, true, true);
|
||||
assert( ret );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user