.cpp: IGNORE_ELSE solving push_back problem #1079

git-svn-id: svn://ultimatepp.org/upp/trunk@8458 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-05-17 17:42:35 +00:00
parent 7cb3472e51
commit 8edeaac6b4
2 changed files with 2 additions and 2 deletions

View file

@ -415,8 +415,6 @@ struct CppItem {
String CppItemKindAsString(int kind);
int FindItem(const Array<CppItem>& x, const String& qitem);
//int GetCount(const Array<CppItem>& x, int i);
//int FindNext(const Array<CppItem>& x, int i);
int FindName(const Array<CppItem>& x, const String& name, int i = 0);
struct CppBase : ArrayMap<String, Array<CppItem> > {

View file

@ -171,6 +171,8 @@ void Cpp::DoFlatInclude(const String& header_path)
}
}
#define IGNORE_ELSE
void Cpp::Do(const String& sourcefile, Stream& in, const String& currentfile, bool get_macros)
{
if(visited.Find(currentfile) >= 0 || visited.GetCount() > 20000)