Share via


data_seg

#pragma data_seg( ["section-name"[, "section-class"] ] )

Specifies the default section for initialized data. For example:

#pragma data_seg( "MY_DATA" )

causes data allocated following the #pragma statement to be placed in a section called MY_DATA.

Data allocated using the data_seg pragma does not retain any information about its location.

The second parameter, section-class, is included for compatibilty with versions of Visual C++ prior to version 2.0, and is now ignored.

See /SECTION for a list of names you should not use when creating a section.

Pragma Directives