Poke_Transporter_GB/include/custom_malloc.h
Philippe Symons b84939b49a Add debug menu UI when you press L+R in the main menu.
It's only the UI yet. It only shows a couple of dummy options right now.
2026-03-09 19:56:32 +01:00

22 lines
490 B
C

#ifndef CUSTOM_MALLOC_H
#define CUSTOM_MALLOC_H
#include "dbg/debug_mode.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stddef.h>
/// malloc.c defines a custom bitmap allocator implementation that replaces newlibs'
/// if the USE_CUSTOM_MALLOC flag is set. That makes sure the linker won't pull in all the malloc related code
/// in newlibc (alongside the 1KB IWRAM __malloc_av variable)
void malloc_init_default_pool(void);
#ifdef __cplusplus
}
#endif
#endif