Create a macro for helping into defining the threshold in RAM

This commit is contained in:
Francisco Javier Trujillo Mata
2021-11-13 16:42:51 +01:00
parent 1857e98f0d
commit 0302a09f2a

View File

@@ -137,9 +137,9 @@ enum PspModuleInfoAttr
#define PSP_HEAP_SIZE_KB(size_kb) \ #define PSP_HEAP_SIZE_KB(size_kb) \
int sce_newlib_heap_kb_size = (size_kb) int sce_newlib_heap_kb_size = (size_kb)
/* Declare to allocate maximum heap area */ /* Declare the threshold of the heap (in KB) that the program wants to keep for external allocation. */
#define PSP_HEAP_SIZE_MAX() \ #define PSP_HEAP_THRESHOLD_SIZE_KB(size_kb) \
PSP_HEAP_SIZE_KB(-1) int sce_newlib_heap_threshold_kb_size = (size_kb)
/* Declare the name of the main thread */ /* Declare the name of the main thread */
#define PSP_MAIN_THREAD_NAME(s) const char* sce_newlib_main_thread_name = (s) #define PSP_MAIN_THREAD_NAME(s) const char* sce_newlib_main_thread_name = (s)