this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add additional static asserts

authored by

phcoder and committed by
Vladimir Serbinenko
41c144ef ff9fee97

+7
+3
src/core/core.c
··· 40 40 41 41 static_assert(TIC_BANK_BITS == 3, "tic_bank_bits"); 42 42 static_assert(sizeof(tic_map) < 1024 * 32, "tic_map"); 43 + static_assert(sizeof(tic_rgb) == 3, "tic_rgb"); 44 + static_assert(sizeof(tic_palette) == 48, "tic_palette"); 45 + static_assert(sizeof(((tic_vram *)0)->vars) == 4, "tic_vram vars"); 43 46 static_assert(sizeof(tic_vram) == TIC_VRAM_SIZE, "tic_vram"); 44 47 static_assert(sizeof(tic_ram) == TIC_RAM_SIZE, "tic_ram"); 45 48
+4
src/core/io.c
··· 25 25 26 26 #include "tic_assert.h" 27 27 28 + static_assert(sizeof(tic80_gamepad) == 1, "tic80_gamepad"); 29 + static_assert(sizeof(tic80_gamepads) == 4, "tic80_gamepads"); 30 + static_assert(sizeof(tic80_mouse) == 4, "tic80_mouse"); 31 + static_assert(sizeof(tic80_keyboard) == 4, "tic80_keyboard"); 28 32 static_assert(sizeof(tic80_input) == 12, "tic80_input"); 29 33 30 34 static bool isKeyPressed(const tic80_keyboard* input, tic_key key)