Group extern RGBLINK variables in an Options struct, like RGBGFX

This commit is contained in:
Rangi42
2025-07-21 18:12:40 -04:00
parent 0cd60ea1e6
commit d652212857
6 changed files with 110 additions and 118 deletions

View File

@@ -10,7 +10,7 @@
#include "linkdefs.hpp"
void script_ProcessScript(char const *path);
void script_ProcessScript();
}
%code {
@@ -828,12 +828,12 @@ static void placeSection(std::string const &name, bool isOptional) {
/******************** External API ********************/
void script_ProcessScript(char const *path) {
void script_ProcessScript() {
activeType = SECTTYPE_INVALID;
lexerStack.clear();
atEof = false;
LexerStackEntry &newContext = lexerStack.emplace_back(std::string(path));
LexerStackEntry &newContext = lexerStack.emplace_back(std::string(options.linkerScriptName));
if (!newContext.file.open(newContext.path, std::ios_base::in)) {
error("Failed to open linker script \"%s\"", newContext.path.c_str());