diff --git a/src/main.cpp b/src/main.cpp index a431896..384f681 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,12 +1,11 @@ #include -#include #include +#include "headers/Yerbacon.hpp" #include #include using namespace std; #include "headers/misc.hpp" -#include "headers/Yerbacon.hpp" #include "headers/arguments.hpp" #include "headers/transpiler/Target.hpp" @@ -34,9 +33,9 @@ int main(int argc, char* argv[]) { if (!files.empty()) { const set uniqueFiles(files.begin(), files.end()); vector> Units; + const launch& Policy = not parallel ? launch::deferred : launch::async; for (string_view fileName: uniqueFiles) { if (fileName != "none") { - const launch Policy = !parallel ? launch::deferred : launch::async; future newAsync = async(Policy, [printResult, fileName, target]() mutable { const string transpiledString = transpile(parseString(getFileContent(fileName.data())), target); stringstream consoleOutput;