Updated GB_debugger_set_reload_callback (markdown)

Lior Halphon 2024-11-30 22:25:23 +02:00
parent 6f32b0ecea
commit ca2575c974
1 changed files with 8 additions and 2 deletions

@ -4,14 +4,20 @@
typedef void (*GB_debugger_reload_callback_t)(GB_gameboy_t *gb); typedef void (*GB_debugger_reload_callback_t)(GB_gameboy_t *gb);
``` ```
<tt>void GB_debugger_set_reload_callback([[GB_gameboy_t]] *gb, [[GB_debugger_reload_callback_t]] callback);</tt> <tt>void GB_debugger_set_reload_callback([[GB_gameboy_t]] *gb, GB_debugger_reload_callback_t callback);</tt>
In `gb.h` In `gb.h`
## Description ## Description
TBD Sets a callback that will be called when a user issues a `reset reload` debugger command. This callback is expected to [[reload the current ROM|GB_load_rom]] and [[its associated symbols|GB_debugger_load_symbol_file]], then call [[GB_reset]].
## Thread Safety ## Thread Safety
`GB_debugger_set_reload_callback` is thread-safe and can be called from any thread and context. `GB_debugger_set_reload_callback` is thread-safe and can be called from any thread and context.
## See Also
* [[GB_debugger_load_symbol_file]]
* [[GB_load_rom]]
* [[GB_load_isx]]