| 85 | } |
| 86 | |
| 87 | bool CompileHelper::add(const std::string Code, const std::string Name, |
| 88 | const std::string Opt, SourceType Type) { |
| 89 | |
| 90 | auto Path = getUniqueFilePath(SrcDir, Name, getFileExt(Type)); |
| 91 | if (!util::saveFile(Path.c_str(), Code.c_str())) |
| 92 | return false; |
| 93 | SourceFiles.emplace_back(Name, Path, Opt, Type); |
| 94 | return true; |
| 95 | } |
| 96 | |
| 97 | bool CompileHelper::add(const std::string Path, const std::string Opt, |
| 98 | SourceType Type) { |