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

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

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:

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:

Bad undef directive syntax

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