Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
V1040. Possible typo in the spelling...
menu mobile close menu
Additional information
toggle menu Contents

V1040. Possible typo in the spelling of a pre-defined macro name.

Jun 27 2019

The analyzer has detected a potentially misspelled name of a pre-defined macro.

Non-compliant example:

#if defined (__linux__) || defined (__APPLE_)

The same expression fixed:

#if defined (__linux__) || defined (__APPLE__)

Another example demonstrating a typo:

#ifdef __WLN32__

Correct version:

#ifdef __WIN32__

You can look at examples of errors detected by the V1040 diagnostic.