include/static_assert.h
STATIC_ASSERT, a check on sizes and layouts made as the code compiles.
Included by menu_internal.h, shop_internal.h, window_internal.h, battle_action.h, battle_action_run.h, battle_actor.h, battle_camera.h, battle_effect_params.h, battle_effect_state.h, battle_side.h, battle_sprites.h, battle_state.h, battle_unit.h, playback_queue.h, actor.h, canvas_sprite.h, effect_sprite.h, field_blend.h, field_coordinate.h, field_particle.h, field_psynergy_state.h, field_state.h, lucky_wheels_lzpack.h, map_grid.h, particle.h, perspective.h, script_commands.h, script_operands.h, sprite.h, view_move.h, world_map.h, world_map_affine.h, character.h, item.h, main_routine_state.h, display_transition.h, glyph.h, palette_buffers.h, palette_cycles.h, render_placement.h, djinn_menu.h, paged_list.h, falling_rocks.h, pushed_actor.h, definitions.h, globals.h, battle_status.h, cursor.h, icon_menu.h, message_reader.h and 4 more.
Macros
| Name | Description | |
|---|---|---|
#define | STATIC_ASSERT (condition) _Static_assert((condition), #condition) | C89 permits repeated extern declarations of the same array. |
Description
STATIC_ASSERT, a check on sizes and layouts made as the code compiles.
Macros in detail
STATIC_ASSERT
#define STATIC_ASSERT(condition) _Static_assert((condition), #condition)
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array. A false condition gives it an invalid size; a true one emits no code or storage.
Referenced by offsetof.