include/static_assert.h
STATIC_ASSERT, a compile-time check that emits nothing.
Included by world_map_lines.c, menu_internal.h, screens_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, actor_update_arm.h, field.h, field_blend.h, field_coordinate.h, field_particle.h, field_psynergy_state.h, field_state.h, ground_mask.h, lucky_wheels_lzpack.h, map_grid.h, particle.h, perspective.h, scene_tables.h, script.h, script_operands.h, speaker.h, sprite.h, weather.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, mercury_lighthouse_lights.h, pushed_actor.h, shop.h, definitions.h, globals.h, battle_status.h, cursor.h, icon_menu.h and 6 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 compile-time check that emits nothing.
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.