mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use std::optional<std::string> for lexer expansion names
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user