mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Make all non-extern globals static
This commit is contained in:
@@ -16,14 +16,14 @@
|
||||
#include "link/symbol.hpp"
|
||||
#include "link/warning.hpp"
|
||||
|
||||
std::deque<Assertion> assertions;
|
||||
static std::deque<Assertion> assertions;
|
||||
|
||||
struct RPNStackEntry {
|
||||
int32_t value;
|
||||
bool errorFlag; // Whether the value is a placeholder inserted for error recovery
|
||||
};
|
||||
|
||||
std::deque<RPNStackEntry> rpnStack;
|
||||
static std::deque<RPNStackEntry> rpnStack;
|
||||
|
||||
static void pushRPN(int32_t value, bool comesFromError) {
|
||||
rpnStack.push_front({.value = value, .errorFlag = comesFromError});
|
||||
|
||||
Reference in New Issue
Block a user