+ // If we couldn't find the file in the current directory, look for it in
+ // the include directories.
+ //
+ // NOTE: Right now, there is only one directory. We need to eventually add
+ // support for more.
+ std::string NextFilename = IncludeDirectory + "/" + Filename;
+ yyin = fopen(NextFilename.c_str(), "r");
+ if (yyin == 0) {
+ err() << "Could not find include file '" << Filename << "'!\n";
+ exit(1);
+ }
+ Filename = NextFilename;