@whereismyfoodat suggestions

This commit is contained in:
georgemoralis 2024-02-23 10:47:26 +02:00
parent c7693f77d4
commit 3a6dec3987

View File

@ -51,7 +51,7 @@ void GenerateCodeFiles(
headerFile.close();
std::string sourceName(lowModName + ".cpp");
std::string sourceCode("//Generated By moduleGenerator\n#include \"" + headerName +
std::string sourceCode("// Generated By moduleGenerator\n#include \"" + headerName +
"\"\n#include \"common/log.h\"\n#include \"error_codes.h\"\n\n");
sourceCode += "namespace Libraries::" + trimmedName + "{\n\n";
@ -141,7 +141,7 @@ void GetSymbolsFromLibDoc(std::vector<std::string>& importModules) {
int main(int argc, char* argv[]) {
std::filesystem::path genFolder(MODULE_DIR);
if (!std::filesystem::exists(genFolder)) {
std::filesystem::create_directory(genFolder);
std::filesystem::create_directories(genFolder);
}
std::vector<std::string> modules_to_generate;