git.y1.nz

SameBoy

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

commit 237e127b36eaee574e2a1d7900da21bda0775405
parent 4421dedbb962e9f0ef14c84e55db0779dafd1267
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Tue, 11 Apr 2023 12:37:13 +0300

Add a comment

Diffstat:
MCore/save_state.h2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/Core/save_state.h b/Core/save_state.h @@ -19,6 +19,8 @@ #ifdef GB_INTERNAL #define GB_SECTION_OFFSET(name) (offsetof(GB_gameboy_t, name##_section_start)) #define GB_SECTION_SIZE(name) (offsetof(GB_gameboy_t, name##_section_end) - offsetof(GB_gameboy_t, name##_section_start)) +/* This roundabout way to get the section offset is because GCC 9 is a bad compiler and will false-positively complain + about memset buffer overflows otherwise */ #define GB_GET_SECTION(gb, name) (void *)((uint8_t *)(gb) + GB_SECTION_OFFSET(name)) #endif #endif

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