- Recognizing WINAPI as EXT_DECL and WINUSERAPI, BOOL as TYPE_NAME
extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_next;
+extern unsigned int inIDE;
+
extern int targetBits;
extern int targetPlatform;
int CheckType(const char * text)
{
+if(inIDE)
+{
+if(!strcmp(text, "WINAPI"))
+return EXT_DECL;
+else if(!strcmp(text, "BOOL") || !strcmp(text, "WINUSERAPI"))
+return TYPE_NAME;
+}
if(FindTemplateTypeParameter(curContext, text))
{
return TYPE_NAME;
#ifdef _TIMINGS
Time startTime = GetTime();
#endif
+
+ if(inIDE)
+ {
+ // Help out the Debugger with Windows files until we improve the parser
+ if(!strcmp(text, "WINAPI"))
+ return EXT_DECL;
+ else if(!strcmp(text, "BOOL") || !strcmp(text, "WINUSERAPI"))
+ return TYPE_NAME;
+ }
+
if(FindTemplateTypeParameter(curContext, text))
{
#ifdef _TIMINGS