RAD Studio
ContentsIndex
PreviousUpNext
W8093: Incorrect use of #pragma codeseg [seg_name] ["seg_class"] [group] (C++)

The #pragma codeseg directive can be used to set or reset the name, class, and group of a segment. You have to follow the exact syntax mentioned in the warning message, and all names are optional. 

So these are all legal:

#pragma codeseg

 

#pragma codeseg foo

 

#pragma codeseg foo "bar"

 

#pragma codeseg foo "bar" foobar

But these are not:

#pragma codeseg ###

 

#pragma codeseg "foo" "bar"

 

#pragma codeseg foo "bar" foobar morefoobar
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!