threaded exception handling
Some checks failed
demo.yaml / threaded exception handling (push) Failing after 0s

This commit is contained in:
Jorijn van der Graaf 2025-11-15 19:20:33 +01:00
commit c2bb9023d4
14 changed files with 237 additions and 127 deletions

View file

@ -21,22 +21,22 @@ export module Crafter.Build:Command;
import std;
namespace Crafter {
export struct CompileError {
std::string filename;
std::uint_fast32_t line;
std::string message;
std::string code;
};
// export struct CompileError {
// std::string filename;
// std::uint_fast32_t line;
// std::string message;
// std::string code;
// };
export class CompileException : public std::exception {
public:
std::string message;
std::vector<CompileError> errors;
CompileException(std::vector<CompileError>&& errors);
const char* what() const noexcept override;
};
// export class CompileException : public std::exception {
// public:
// std::string message;
// std::vector<CompileError> errors;
// CompileException(std::vector<CompileError>&& errors);
// const char* what() const noexcept override;
// };
export std::string RunCommand(const std::string_view cmd);
export void RunCommandIgnore(const std::string_view cmd);
export void RunClang(const std::string_view cmd);
export std::string RunClang(const std::string_view cmd);
}