threaded exception handling
Some checks failed
demo.yaml / threaded exception handling (push) Failing after 0s
Some checks failed
demo.yaml / threaded exception handling (push) Failing after 0s
This commit is contained in:
parent
598c666e91
commit
c2bb9023d4
14 changed files with 237 additions and 127 deletions
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue