gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 825a20758ac5df0a8651736894c7b3d35d7d33c9 parent 8fb4565ce5837b672f848a288f4f8f9f12d63c79 Author: Toxa <untoxa@mail.ru> Date: Fri, 14 Jul 2023 19:04:00 +0300 NES: add display_on() declaration; fix "warning 283: function declarator with no prototype" when using BANKREF macro Diffstat:
| M | gbdk-lib/include/nes/nes.h | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gbdk-lib/include/nes/nes.h b/gbdk-lib/include/nes/nes.h @@ -290,7 +290,7 @@ extern volatile uint8_t _current_bank; Use @ref BANKREF_EXTERN() within another source file to make the variable and it's data accesible there. */ -#define BANKREF(VARNAME) void __func_ ## VARNAME() __banked __naked { \ +#define BANKREF(VARNAME) void __func_ ## VARNAME(void) __banked __naked { \ __asm \ .local b___func_ ## VARNAME \ ___bank_ ## VARNAME = b___func_ ## VARNAME \ @@ -450,6 +450,12 @@ void vsync(void); */ void wait_vbl_done(void); +/** Turns the display on. + + @see DISPLAY_ON +*/ +void display_on(void); + /** Turns the display off. Waits until the VBL interrupt before turning the display off.
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.