diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-01-29 14:49:20 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-01-29 14:49:20 +0100 |
| commit | 5959349f341a2380c0c3f41ec40a1e8e0d969d00 (patch) | |
| tree | 8b36ba3f8cade68562af1dfdcea8b42160619975 /lib/nes/util/status.hh | |
| parent | 1d32f7561305d6c86b1c80858bc73d55b1c6c402 (diff) | |
refactor: move emulation logic into sys
Diffstat (limited to 'lib/nes/util/status.hh')
| -rw-r--r-- | lib/nes/util/status.hh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/nes/util/status.hh b/lib/nes/util/status.hh deleted file mode 100644 index 64f5969..0000000 --- a/lib/nes/util/status.hh +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -namespace nes -{ - /// A status code. - enum class status - { - success, - error_uninitialized, - error_system_error, - error_invalid_ines_data, - error_unsupported_mapper, - error_unsupported_instruction, - }; - - constexpr auto to_string(status const status) -> char const* - { - switch (status) - { - case status::success: - return "Success"; - case status::error_uninitialized: - return "Uninitialized"; - case status::error_system_error: - return "System error"; - case status::error_invalid_ines_data: - return "Invalid iNES data"; - case status::error_unsupported_mapper: - return "Unsupported mapper"; - case status::error_unsupported_instruction: - return "Unsupported instruction"; - } - - return "(invalid)"; - } -} // namespace nes
\ No newline at end of file |
