Use std::string for RPN error reasons

This commit is contained in:
Rangi42
2024-02-25 10:43:49 -05:00
committed by Sylvie
parent cf42d035f2
commit 514044496f
2 changed files with 23 additions and 26 deletions

View File

@@ -4,12 +4,13 @@
#define RGBDS_ASM_RPN_H
#include <stdint.h>
#include <string>
#include "linkdefs.hpp"
struct Expression {
int32_t val; // If the expression's value is known, it's here
char *reason; // Why the expression is not known, if it isn't
std::string *reason; // Why the expression is not known, if it isn't
bool isKnown; // Whether the expression's value is known
bool isSymbol; // Whether the expression represents a symbol
std::vector<uint8_t> *rpn; // Bytes serializing the RPN expression