diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2025-06-03 12:40:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-03 06:40:55 -0400 |
| commit | 0c1b1231d3f77a758e1fce7c0e18dcb4465f5269 (patch) | |
| tree | fd655eef29bfad5af8d3b4aefce02793580e6da2 /src/code/debug_malloc.c | |
| parent | 1627f8415b200144ba6db8d297ad0080b796c80d (diff) | |
T() macro loose ends 1 (#2563)
* more T() in debug_malloc.c graph.c z_actor.c malloc.c
* more T() in Zl2, Zl3
* T() diving_game, fire_rock
* T() girla
* more T() in heishi[124]
* T() in hs2, kakasi2, ru2
* format
* keaton
* Diving GO
Diffstat (limited to 'src/code/debug_malloc.c')
| -rw-r--r-- | src/code/debug_malloc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/code/debug_malloc.c b/src/code/debug_malloc.c index ad7c786f3..772a9a887 100644 --- a/src/code/debug_malloc.c +++ b/src/code/debug_malloc.c @@ -34,7 +34,7 @@ void DebugArena_CheckPointer(void* ptr, u32 size, const char* name, const char* void* DebugArena_Malloc(u32 size) { void* ptr = __osMalloc(&sDebugArena, size); - DEBUG_ARENA_CHECK_POINTER(ptr, size, "debug_malloc", "確保"); // "Secure" + DEBUG_ARENA_CHECK_POINTER(ptr, size, "debug_malloc", T("確保", "Secure")); return ptr; } @@ -42,7 +42,7 @@ void* DebugArena_Malloc(u32 size) { void* DebugArena_MallocDebug(u32 size, const char* file, int line) { void* ptr = __osMallocDebug(&sDebugArena, size, file, line); - DEBUG_ARENA_CHECK_POINTER(ptr, size, "debug_malloc_DEBUG", "確保"); // "Secure" + DEBUG_ARENA_CHECK_POINTER(ptr, size, "debug_malloc_DEBUG", T("確保", "Secure")); return ptr; } #endif @@ -50,7 +50,7 @@ void* DebugArena_MallocDebug(u32 size, const char* file, int line) { void* DebugArena_MallocR(u32 size) { void* ptr = __osMallocR(&sDebugArena, size); - DEBUG_ARENA_CHECK_POINTER(ptr, size, "debug_malloc_r", "確保"); // "Secure" + DEBUG_ARENA_CHECK_POINTER(ptr, size, "debug_malloc_r", T("確保", "Secure")); return ptr; } @@ -58,21 +58,21 @@ void* DebugArena_MallocR(u32 size) { void* DebugArena_MallocRDebug(u32 size, const char* file, int line) { void* ptr = __osMallocRDebug(&sDebugArena, size, file, line); - DEBUG_ARENA_CHECK_POINTER(ptr, size, "debug_malloc_r_DEBUG", "確保"); // "Secure" + DEBUG_ARENA_CHECK_POINTER(ptr, size, "debug_malloc_r_DEBUG", T("確保", "Secure")); return ptr; } #endif void* DebugArena_Realloc(void* ptr, u32 newSize) { ptr = __osRealloc(&sDebugArena, ptr, newSize); - DEBUG_ARENA_CHECK_POINTER(ptr, newSize, "debug_realloc", "再確保"); // "Re-securing" + DEBUG_ARENA_CHECK_POINTER(ptr, newSize, "debug_realloc", T("再確保", "Re-secure")); return ptr; } #if DEBUG_FEATURES void* DebugArena_ReallocDebug(void* ptr, u32 newSize, const char* file, int line) { ptr = __osReallocDebug(&sDebugArena, ptr, newSize, file, line); - DEBUG_ARENA_CHECK_POINTER(ptr, newSize, "debug_realloc_DEBUG", "再確保"); // "Re-securing" + DEBUG_ARENA_CHECK_POINTER(ptr, newSize, "debug_realloc_DEBUG", T("再確保", "Re-secure")); return ptr; } #endif @@ -96,7 +96,7 @@ void* DebugArena_Calloc(u32 num, u32 size) { bzero(ret, n); } - DEBUG_ARENA_CHECK_POINTER(ret, n, "debug_calloc", "確保"); + DEBUG_ARENA_CHECK_POINTER(ret, n, "debug_calloc", T("確保", "Secure")); return ret; } |
