diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-28 05:25:03 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-28 05:25:03 (GMT) |
commit | 33e873d8dae644b28dd3d6cbcf04450d6675fafd (patch) | |
tree | a0d6e570b21f18763ef33099b486d735ec22f2f4 /src/parsersettings.cc | |
parent | eade7ede546f2415dfe6a8ff36a77136f883d03b (diff) |
Changed compile GUI logic to properly handler automatic reload on cascading changes
Diffstat (limited to 'src/parsersettings.cc')
-rw-r--r-- | src/parsersettings.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/parsersettings.cc b/src/parsersettings.cc index ab93b78..04c20ed 100644 --- a/src/parsersettings.cc +++ b/src/parsersettings.cc @@ -30,24 +30,24 @@ fs::path search_libs(const fs::path &localpath) } // files must be 'ordinary' - they must exist and be non-directories -// FIXME: We cannot print any output here since these function is called periodically -// from "Automatic reload and compile" +// FIXME: Don't print anything from this function as it's called repeatedly +// for the automatic reload function (FileModule::include_modified()) static bool check_valid(const fs::path &p, const std::vector<std::string> *openfilenames) { if (p.empty()) { -// PRINTB("WARNING: File path is blank: %s",p); + //PRINTB("WARNING: File path is blank: %s",p); return false; } if (!p.has_parent_path()) { -// PRINTB("WARNING: No parent path: %s",p); + //PRINTB("WARNING: No parent path: %s",p); return false; } if (!fs::exists(p)) { -// PRINTB("WARNING: File not found: %s",p); + //PRINTB("WARNING: File not found: %s",p); return false; } if (fs::is_directory(p)) { -// PRINTB("WARNING: %s invalid - points to a directory",p); + //PRINTB("WARNING: %s invalid - points to a directory",p); return false; } std::string fullname = boosty::stringy(p); @@ -55,7 +55,7 @@ static bool check_valid(const fs::path &p, const std::vector<std::string> *openf if (openfilenames) { BOOST_FOREACH(const std::string &s, *openfilenames) { if (s == fullname) { -// PRINTB("WARNING: circular include file %s", fullname); + //PRINTB("WARNING: circular include file %s", fullname); return false; } } |