NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Warning (level 1) C4004

incorrect construction after 'defined'

The defined operator is incorrectly terminated. When the remainder of the line following defined is compiled, a warning or error appears.

Example

This code generates warning C4004 and a fatal error:

#if defined( ID1 ) || ( ID2 )

The compiler assumes that ID1 is the only operand for defined. The remainder of the line cannot be parsed.

The following code fixes the problem:

#if defined( ID1 ) || defined( ID2 )