return 0;
}
-char*find_file(const char*filename)
+char*find_file(const char*filename, char error)
{
include_dir_t*i = current_include_dirs;
FILE*fi = 0;
return strdup(filename);
}
} else {
- if(!i) {
+ if(!i && error) {
as3_warning("Include directory stack is empty, while looking for file %s", filename);
}
while(i) {
i = i->next;
}
}
+ if(!error) {
+ return 0;
+ }
as3_error("Couldn't find file %s", filename);
i = current_include_dirs;