mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Simplify \@ handling by using std::shared_ptr<std::string>
This has been relocated from macro.cpp to fstack.cpp, since both MACRO and REPT/FOR nodes have their own unique `\@` values.
This commit is contained in:
@@ -591,7 +591,8 @@ static char const *readMacroArg(char name) {
|
||||
char const *str = nullptr;
|
||||
|
||||
if (name == '@') {
|
||||
str = macro_GetUniqueIDStr();
|
||||
auto maybeStr = fstk_GetUniqueIDStr();
|
||||
str = maybeStr ? maybeStr->c_str() : nullptr;
|
||||
} else if (name == '#') {
|
||||
str = macro_GetAllArgs();
|
||||
} else if (name == '<') {
|
||||
|
||||
Reference in New Issue
Block a user