You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
472 B
28 lines
472 B
4 years ago
|
#pragma once
|
||
|
|
||
4 years ago
|
namespace cmkr {
|
||
|
namespace error {
|
||
4 years ago
|
|
||
|
struct Status {
|
||
|
enum class Code {
|
||
|
Success = 0,
|
||
|
RuntimeError,
|
||
|
InitError,
|
||
|
GenerationError,
|
||
|
BuildError,
|
||
4 years ago
|
CleanError,
|
||
|
InstallError,
|
||
4 years ago
|
};
|
||
|
Status(Code ec) noexcept;
|
||
4 years ago
|
operator int() const noexcept;
|
||
|
Code code() const noexcept;
|
||
4 years ago
|
|
||
|
private:
|
||
4 years ago
|
Code ec_ = Code::Success;
|
||
4 years ago
|
};
|
||
|
|
||
4 years ago
|
} // namespace error
|
||
|
} // namespace cmkr
|
||
4 years ago
|
|
||
4 years ago
|
const char *cmkr_error_status_string(int);
|