compiler/libec: Work around to improve debugging in Win32Interface.ec
[sdk] / compiler / libec / src / ast.ec
index 6b696f8..9b56913 100644 (file)
@@ -1985,6 +1985,16 @@ int CheckType(const char * text)
 #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