gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 04f758bba460e8a49ed1291779f6d135814f336c parent 6a02cce06f015f967a85eede62e0d00936b387c7 Author: Toxa <untoxa@mail.ru> Date: Sun, 4 Jan 2026 00:19:14 +0300 force linking EMU_profiler_message when including emu_debug.h Diffstat:
| M | gbdk-lib/include/gbdk/emu_debug.h | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gbdk-lib/include/gbdk/emu_debug.h b/gbdk-lib/include/gbdk/emu_debug.h @@ -184,9 +184,9 @@ void EMU_printf(const char *format, ...) PRESERVES_REGS(a, b, c); */ void EMU_fmtbuf(const unsigned char * format, void * data) PRESERVES_REGS(a, b, c); -#ifdef NINTENDO -static void * __EMU_PROFILER_INIT = &EMU_profiler_message; -#endif // NINTENDO +#if defined(__SDCC) && defined(NINTENDO) +static void __EMU_PROFILER_INIT__(void) NAKED { __asm__(".globl _EMU_profiler_message"); } +#endif /** The Emulator will break into debugger when encounters this line */
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.