mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-23 11:32:07 +00:00
Pass std::string references to RPN functions
This commit is contained in:
@@ -43,10 +43,10 @@ void rpn_ISCONST(Expression &expr, Expression const &src);
|
||||
void rpn_NEG(Expression &expr, Expression &&src);
|
||||
void rpn_NOT(Expression &expr, Expression &&src);
|
||||
void rpn_BankSymbol(Expression &expr, std::string const &symName);
|
||||
void rpn_BankSection(Expression &expr, char const *sectionName);
|
||||
void rpn_BankSection(Expression &expr, std::string const §ionName);
|
||||
void rpn_BankSelf(Expression &expr);
|
||||
void rpn_SizeOfSection(Expression &expr, char const *sectionName);
|
||||
void rpn_StartOfSection(Expression &expr, char const *sectionName);
|
||||
void rpn_SizeOfSection(Expression &expr, std::string const §ionName);
|
||||
void rpn_StartOfSection(Expression &expr, std::string const §ionName);
|
||||
void rpn_SizeOfSectionType(Expression &expr, SectionType type);
|
||||
void rpn_StartOfSectionType(Expression &expr, SectionType type);
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ extern std::deque<Section> sectionList;
|
||||
extern std::unordered_map<std::string, size_t> sectionMap; // Indexes into `sectionList`
|
||||
extern Section *currentSection;
|
||||
|
||||
Section *sect_FindSectionByName(char const *name);
|
||||
Section *sect_FindSectionByName(std::string const &name);
|
||||
void sect_NewSection(
|
||||
std::string const &name,
|
||||
SectionType type,
|
||||
|
||||
Reference in New Issue
Block a user