diff options
Diffstat (limited to 'firmware/core_alloc.c')
| -rw-r--r-- | firmware/core_alloc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/core_alloc.c b/firmware/core_alloc.c index 68c400f..58e1214 100644 --- a/firmware/core_alloc.c +++ b/firmware/core_alloc.c @@ -87,6 +87,12 @@ bool core_shrink(int handle, void* new_start, size_t new_size) return buflib_shrink(&core_ctx, handle, new_start, new_size); } +const char* core_get_name(int handle) +{ + const char *name = buflib_get_name(&core_ctx, handle); + return name ?: "<anonymous>"; +} + int core_get_num_blocks(void) { return buflib_get_num_blocks(&core_ctx); |