git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 06621d1dfe63ff3b7ef27c670ad5899ed3c65ec8
parent 3e3ac23432849a79eee6c8b7e91eb4543ff15dfb
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed, 10 May 2023 00:54:34 +0300

Fix GB_debugger_break on builds without the debugger

Diffstat:
MCore/debugger.h4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Core/debugger.h b/Core/debugger.h @@ -5,7 +5,7 @@ #include "defs.h" #include "symbol_hash.h" - +void GB_debugger_break(GB_gameboy_t *gb); #ifdef GB_INTERNAL #ifdef GB_DISABLE_DEBUGGER #define GB_debugger_run(gb) (void)0 @@ -15,6 +15,7 @@ #define GB_debugger_test_write_watchpoint(gb, addr, value) ((void)addr, (void)value) #define GB_debugger_test_read_watchpoint(gb, addr) (void)addr #define GB_debugger_add_symbol(gb, bank, address, symbol) ((void)bank, (void)address, (void)symbol) +#define GB_debugger_break(gb) (void)0 #else internal void GB_debugger_run(GB_gameboy_t *gb); @@ -39,7 +40,6 @@ char *GB_debugger_complete_substring(GB_gameboy_t *gb, char *input, uintptr_t *c void GB_debugger_load_symbol_file(GB_gameboy_t *gb, const char *path); const char *GB_debugger_name_for_address(GB_gameboy_t *gb, uint16_t addr); bool GB_debugger_evaluate(GB_gameboy_t *gb, const char *string, uint16_t *result, uint16_t *result_bank); /* result_bank is -1 if unused. */ -void GB_debugger_break(GB_gameboy_t *gb); bool GB_debugger_is_stopped(GB_gameboy_t *gb); void GB_debugger_set_disabled(GB_gameboy_t *gb, bool disabled); void GB_debugger_clear_symbols(GB_gameboy_t *gb);

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.