RAD Studio |  |

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:

Copy Code

    #pragma codeseg

Copy Code

    #pragma codeseg foo

Copy Code

    #pragma codeseg foo "bar"

Copy Code

    #pragma codeseg foo "bar" foobar

But these are not:

Copy Code

    #pragma codeseg ###

Copy Code

    #pragma codeseg "foo" "bar"

Copy Code

    #pragma codeseg foo "bar" foobar morefoobar

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!