Skip to content

Commit 03f41eb

Browse files
kedMertenskartben
authored andcommitted
include: sys: sys_heap: fix ifdef guards
Ifdef guard of CONFIG_SYS_HEAP_RUNTIME_STATS prevents using IS_ENABLED macro, preferred way of guarding code. This commit fixes that by removing ifdef macro. Signed-off-by: Evgenii Kosenko <Evgenii.Kosenko@silabs.com>
1 parent a133ef8 commit 03f41eb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/zephyr/sys/sys_heap.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ struct z_heap_stress_result {
7373
* @{
7474
*/
7575

76-
#ifdef CONFIG_SYS_HEAP_RUNTIME_STATS
77-
7876
/**
7977
* @brief Get the runtime statistics of a sys_heap
8078
*
@@ -96,8 +94,6 @@ int sys_heap_runtime_stats_get(struct sys_heap *heap,
9694
*/
9795
int sys_heap_runtime_stats_reset_max(struct sys_heap *heap);
9896

99-
#endif
100-
10197
/** @brief Initialize sys_heap
10298
*
10399
* Initializes a sys_heap struct to manage the specified memory.

0 commit comments

Comments
 (0)