section

Activates or deactivates a user-defined or predefined section.

  #pragma section sname begin | end  
Parameters

sname

Identifier for a user-defined or predefined section.

begin

Activates the specified section from this point in program execution.

end

Deactivates the specified section from this point in program execution; the section returns to its default state.

Remarks

Each call to this pragma must include a begin parameter or an end parameter, but not both.

You may use this pragma with #pragma push and #pragma pop to ease complex or frequent changes to section settings.

Note: A simpler alternative to #pragma section is the __declspec() declaration specifier.