mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Replace Either with std::variant (#1731)
This commit is contained in:
@@ -39,7 +39,7 @@ uint8_t *Expression::reserveSpace(uint32_t size, uint32_t patchSize) {
|
||||
|
||||
int32_t Expression::getConstVal() const {
|
||||
if (!isKnown()) {
|
||||
error("Expected constant expression: %s", data.get<std::string>().c_str());
|
||||
error("Expected constant expression: %s", std::get<std::string>(data).c_str());
|
||||
return 0;
|
||||
}
|
||||
return value();
|
||||
|
||||
Reference in New Issue
Block a user