RAD Studio |  |

W8096: Incorrect use of #pragma code_seg(["seg_name"[,"seg_class"]]) (C++)

Pragma code_seg is similar to pragma codeseg, but with this one you can only modify the name and the class of a code segment. If you use the wrong syntax, you get this warning.

The following examples show the correct usage:

Copy Code

    #pragma code_seg()

Copy Code

    #pragma code_seg("foo")

Copy Code

    #pragma code_seg("foo", "bar")

However, the following incorrect examples will all produce the warning:

Copy Code

    #pragma code_seg(foo)

Copy Code

    #pragma code_seg(foo, bar)

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