The variable attribute init_priority is an orthogonal
extension to C++ that allows you to control the initialization order of
objects defined in namespace scope within a single compilation unit.
The attribute takes a parameter indicating the relative priority of
initialization. A lower number indicates a higher priority.
The syntax is as follows:
>>-type_specifier--declarator--__attribute__--------------------> >--((--+-------------------+--+-------------------------+--))-->< +-init_priority-----+ '-(--relative_priority--)-' '-__init_priority__-'
where relative_priority is a constant integral expression between 101 and 65535, inclusive.
Related References