The problem is the opening { and closing } braces.

PSPAD thinks this is the beginning of a function call, class, or structure; when
in actuality it is just a preprocessor switch designed for backward
compatibility and should be ignored by PSPAD.

If you look at the example code below, Code Explorer ignores everything between
the opening brace { defined at the top and the closing } defined at the bottom.

If you remove the braces, Code Explorer will then correctly parse and find the
BLUE and GREEN macros and the GetColor and SetColor function prototypes.

This is a very common problem with source code and header files written to
support both C and C++ languages.

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

#define BLUE   8
#define GREEN  9

int GetColor(char *color);
int SetColor(int color);

#ifdef __cplusplus
}
#endif


-- 
<http://forum.pspad.com/read.php?2,17527,45070>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem