forked from libretro/RetroArch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(3DS) implement dynamic memory management.
heap/linear heap and stack sizes can now change dynamically at runtime, depending on usage, no need to specify those on a per-core basis anymore.
- Loading branch information
1 parent
d4f037f
commit 8741ec4
Showing
12 changed files
with
815 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef _CTR_DEBUG_H__ | ||
#define _CTR_DEBUG_H__ | ||
|
||
#include <stdio.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
void wait_for_input(void); | ||
void dump_result_value(Result val); | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#define DEBUG_HOLD() do{printf("%s@%s:%d.\n",__FUNCTION__, __FILE__, __LINE__);fflush(stdout);wait_for_input();}while(0) | ||
#define DEBUG_STR(X) printf( "%s: %s\n", #X, (char*)(X)) | ||
#define DEBUG_VAR(X) printf( "%-20s: 0x%08X\n", #X, (u32)(X)) | ||
#define DEBUG_VAR64(X) printf( #X"\r\t\t\t\t : 0x%016llX\n", (u64)(X)) | ||
#define DEBUG_ERROR(X) do{if(X)dump_result_value(X)}while(0) | ||
#define PRINTFPOS(X,Y) "\x1b["#X";"#Y"H" | ||
#define PRINTFPOS_STR(X,Y) "\x1b["X";"Y"H" | ||
|
||
#endif //_CTR_DEBUG_H__ |
Oops, something went wrong.