PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
section.h File Reference

Macros

#define PBL_SECTION_RAM
 Run the function from RAM; also prevents inlining it into flash code.
 
#define PBL_SECTION_RAM_RODATA
 Place the constant in RAM, for tables used by PBL_SECTION_RAM functions.
 
#define PBL_ITERABLE_SECTION_START(tag)   __start_i_##tag
 First entry of an iterable section declared with PBL_ITERABLE_SECTION_DECLARE.
 
#define PBL_ITERABLE_SECTION_END(tag)   __stop_i_##tag
 End of an iterable section declared with PBL_ITERABLE_SECTION_DECLARE.
 
#define PBL_ITERABLE_SECTION_FOREACH(type, tag, var)    for (type *var = PBL_ITERABLE_SECTION_START(tag); var < PBL_ITERABLE_SECTION_END(tag); var++)
 Loop over the entries of an iterable section.
 
#define PBL_ITERABLE_SECTION(type, tag, key)    PBL_USED PBL_ALIGNED(alignof(type)) PBL_SECTION_IMPL(".i_" #tag "." key)
 Add the object to an iterable section, a table gathered at link time from any file.
 
#define PBL_ITERABLE_SECTION_DECLARE(type, tag)
 Declare the bounds of an iterable section.