RAD Studio |  |

E2047: Bad 'directive' directive syntax (C++)

A macro definition starts or ends with the ## operator, or contains the # operator that is not followed by a macro argument name.

An example of this might be:

Copy Code

    Bad ifdef directive syntax

Note that an #ifdef directive must contain a single identifier (and nothing else) as the body of the directive.

Another example is:

Copy Code

    Bad undef directive syntax

An #undef directive must also contain only one identifier as the body of the directive.

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