From 0302a09f2a7b00d77d01c6ca39d19266e4218b1b Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Sat, 13 Nov 2021 16:42:51 +0100 Subject: [PATCH] Create a macro for helping into defining the threshold in RAM --- src/user/pspmoduleinfo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/user/pspmoduleinfo.h b/src/user/pspmoduleinfo.h index 4cce1d3d..4ca9c8ab 100644 --- a/src/user/pspmoduleinfo.h +++ b/src/user/pspmoduleinfo.h @@ -137,9 +137,9 @@ enum PspModuleInfoAttr #define PSP_HEAP_SIZE_KB(size_kb) \ int sce_newlib_heap_kb_size = (size_kb) -/* Declare to allocate maximum heap area */ -#define PSP_HEAP_SIZE_MAX() \ - PSP_HEAP_SIZE_KB(-1) +/* Declare the threshold of the heap (in KB) that the program wants to keep for external allocation. */ +#define PSP_HEAP_THRESHOLD_SIZE_KB(size_kb) \ + int sce_newlib_heap_threshold_kb_size = (size_kb) /* Declare the name of the main thread */ #define PSP_MAIN_THREAD_NAME(s) const char* sce_newlib_main_thread_name = (s)