mirror of
https://github.com/zeldaret/oot
synced 2026-06-04 10:48:51 -04:00
Filename & line number args cleanup (#1891)
* Filename & line number args cleanup * Use int for line number args over s32/u32 * Add missing const qualifiers from filename args * Fix gcc warning in game.c * Add comment to weird assignments in GameState_Init
This commit is contained in:
@@ -36,7 +36,7 @@ void* SystemArena_Malloc(u32 size) {
|
||||
}
|
||||
|
||||
#if OOT_DEBUG
|
||||
void* SystemArena_MallocDebug(u32 size, const char* file, s32 line) {
|
||||
void* SystemArena_MallocDebug(u32 size, const char* file, int line) {
|
||||
void* ptr = __osMallocDebug(&gSystemArena, size, file, line);
|
||||
|
||||
SYSTEM_ARENA_CHECK_POINTER(ptr, size, "malloc_DEBUG", "確保"); // "Secure"
|
||||
@@ -52,7 +52,7 @@ void* SystemArena_MallocR(u32 size) {
|
||||
}
|
||||
|
||||
#if OOT_DEBUG
|
||||
void* SystemArena_MallocRDebug(u32 size, const char* file, s32 line) {
|
||||
void* SystemArena_MallocRDebug(u32 size, const char* file, int line) {
|
||||
void* ptr = __osMallocRDebug(&gSystemArena, size, file, line);
|
||||
|
||||
SYSTEM_ARENA_CHECK_POINTER(ptr, size, "malloc_r_DEBUG", "確保"); // "Secure"
|
||||
@@ -67,7 +67,7 @@ void* SystemArena_Realloc(void* ptr, u32 newSize) {
|
||||
}
|
||||
|
||||
#if OOT_DEBUG
|
||||
void* SystemArena_ReallocDebug(void* ptr, u32 newSize, const char* file, s32 line) {
|
||||
void* SystemArena_ReallocDebug(void* ptr, u32 newSize, const char* file, int line) {
|
||||
ptr = __osReallocDebug(&gSystemArena, ptr, newSize, file, line);
|
||||
SYSTEM_ARENA_CHECK_POINTER(ptr, newSize, "realloc_DEBUG", "再確保"); // "Re-securing"
|
||||
return ptr;
|
||||
@@ -79,7 +79,7 @@ void SystemArena_Free(void* ptr) {
|
||||
}
|
||||
|
||||
#if OOT_DEBUG
|
||||
void SystemArena_FreeDebug(void* ptr, const char* file, s32 line) {
|
||||
void SystemArena_FreeDebug(void* ptr, const char* file, int line) {
|
||||
__osFreeDebug(&gSystemArena, ptr, file, line);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user