We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a15ffe4 commit 8d718d5Copy full SHA for 8d718d5
main.cpp
@@ -43,6 +43,11 @@ int main(int argc, char **argv)
43
}
44
case 'I': { // include path
45
const char * const value = arg[2] ? (argv[i] + 2) : argv[++i];
46
+ std::ifstream f(value);
47
+ if (!f.is_open()) {
48
+ std::cout << "error: include path '" << value << "' does not exist" << std::endl;
49
+ std::exit(1);
50
+ }
51
dui.includePaths.push_back(value);
52
found = true;
53
break;
0 commit comments