Pigweed
C/C++ API Reference
|
Macros | |
#define | PW_MUST_NOT_PLACE(isection) _PW_MUST_NOT_PLACE(isection, __section_not_place_, __COUNTER__) |
#define PW_MUST_NOT_PLACE | ( | isection | ) | _PW_MUST_NOT_PLACE(isection, __section_not_place_, __COUNTER__) |
PW_MUST_NOT_PLACE is a macro intended for use in linker scripts to ensure inputs are not present. It does the opposite of PW_MUST_PLACE.
This can be used to assert that no data members are added to an object file where there should be none. This is useful to ensure the safety of code that must run before data or bss init.
When adding a new variable to a library marked with this macro it is expected to change to PW_MUST_PLACE