mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-10-23 07:53:18 -05:00
23 lines
506 B
C
23 lines
506 B
C
#ifndef CUSTOM_MALLOC_H
|
|
#define CUSTOM_MALLOC_H
|
|
|
|
#include "dbg/debug_mode.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
#include <stddef.h>
|
|
#include <stdint.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 |