#include "absl/status/status.h"
#include "absl/strings/str_format.h"
#include "app/rom.h"
Go to the source code of this file.
|
| namespace | yaze |
| | Main namespace for the application.
|
| |
| namespace | yaze::editor |
| | Editors are the view controllers for the application.
|
| |
◆ REQUIRE_ROM_LOADED
| #define REQUIRE_ROM_LOADED |
( |
|
rom_ptr, |
|
|
|
operation |
|
) |
| |
Value: do { \
if (!(rom_ptr) || !(rom_ptr)->is_loaded()) { \
return absl::FailedPreconditionError( \
absl::StrFormat("%s: ROM not loaded", (operation))); \
} \
} while (0)
Definition at line 12 of file editor_safeguards.h.
◆ CHECK_ROM_STATE
| #define CHECK_ROM_STATE |
( |
|
rom_ptr, |
|
|
|
message |
|
) |
| |
Value: do { \
if (!(rom_ptr) || !(rom_ptr)->is_loaded()) { \
return absl::FailedPreconditionError(message); \
} \
} while (0)
Definition at line 21 of file editor_safeguards.h.