mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use std::shared_ptr for MacroArgs
This commit is contained in:
@@ -61,7 +61,7 @@ std::optional<std::string> fstk_FindFile(std::string const &path);
|
||||
|
||||
bool yywrap();
|
||||
void fstk_RunInclude(std::string const &path);
|
||||
void fstk_RunMacro(std::string const ¯oName, MacroArgs &args);
|
||||
void fstk_RunMacro(std::string const ¯oName, std::shared_ptr<MacroArgs> args);
|
||||
void fstk_RunRept(uint32_t count, int32_t reptLineNo, char const *body, size_t size);
|
||||
void fstk_RunFor(
|
||||
std::string const &symName,
|
||||
|
||||
@@ -15,12 +15,12 @@ struct MacroArgs {
|
||||
void append(std::shared_ptr<std::string> arg);
|
||||
};
|
||||
|
||||
MacroArgs *macro_GetCurrentArgs();
|
||||
void macro_UseNewArgs(MacroArgs *args);
|
||||
bool macro_HasCurrentArgs();
|
||||
std::shared_ptr<MacroArgs> macro_GetCurrentArgs();
|
||||
void macro_UseNewArgs(std::shared_ptr<MacroArgs> args);
|
||||
uint32_t macro_NbArgs();
|
||||
std::shared_ptr<std::string> macro_GetArg(uint32_t i);
|
||||
std::shared_ptr<std::string> macro_GetAllArgs();
|
||||
|
||||
void macro_ShiftCurrentArgs(int32_t count);
|
||||
uint32_t macro_NbArgs();
|
||||
|
||||
#endif // RGBDS_MACRO_H
|
||||
|
||||
Reference in New Issue
Block a user