Use std::optional<std::string> for lexer expansion names

This commit is contained in:
Rangi42
2024-03-02 04:34:42 -05:00
parent 701b926288
commit b488d3a90f
2 changed files with 7 additions and 4 deletions

View File

@@ -4,6 +4,8 @@
#define RGBDS_ASM_LEXER_H
#include <deque>
#include <optional>
#include <string>
#include "platform.hpp" // SSIZE_MAX
@@ -25,7 +27,7 @@ enum LexerMode {
};
struct Expansion {
char *name;
std::optional<std::string> name;
union {
char const *unowned;
char *owned;