gb.h: Silence -Wembedded-directive warning with -pedantic

gb.h:731:2: warning: embedding a directive within macro arguments has undefined behavior [-Wembedded-directive]
\#define GB_REWIND_FRAMES_PER_KEY 255
 ^
This commit is contained in:
orbea 2022-01-14 08:29:41 -08:00
parent 5cf71b406e
commit adfc329cdf

View File

@ -36,6 +36,8 @@
#define GB_MODEL_PAL_BIT 0x40 #define GB_MODEL_PAL_BIT 0x40
#define GB_MODEL_NO_SFC_BIT 0x80 #define GB_MODEL_NO_SFC_BIT 0x80
#define GB_REWIND_FRAMES_PER_KEY 255
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define GB_BIG_ENDIAN #define GB_BIG_ENDIAN
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
@ -728,7 +730,6 @@ struct GB_gameboy_internal_s {
const char *undo_label; const char *undo_label;
/* Rewind */ /* Rewind */
#define GB_REWIND_FRAMES_PER_KEY 255
size_t rewind_buffer_length; size_t rewind_buffer_length;
struct { struct {
uint8_t *key_state; uint8_t *key_state;