Define the default -recursion depth in main.cpp with other default values

This commit is contained in:
Rangi42
2025-01-03 21:23:10 -05:00
committed by Rangi
parent 73ad431b8d
commit a5f12f66bb
2 changed files with 1 additions and 2 deletions

View File

@@ -46,7 +46,6 @@ struct FileStackNode {
std::string const &dump(uint32_t curLineNo) const; std::string const &dump(uint32_t curLineNo) const;
}; };
#define DEFAULT_MAX_DEPTH 64
extern size_t maxRecursionDepth; extern size_t maxRecursionDepth;
struct MacroArgs; struct MacroArgs;

View File

@@ -128,7 +128,7 @@ int main(int argc, char *argv[]) {
opt_P(0); opt_P(0);
opt_Q(16); opt_Q(16);
sym_SetExportAll(false); sym_SetExportAll(false);
uint32_t maxDepth = DEFAULT_MAX_DEPTH; uint32_t maxDepth = 64;
char const *dependFileName = nullptr; char const *dependFileName = nullptr;
std::unordered_map<std::string, std::vector<StateFeature>> stateFileSpecs; std::unordered_map<std::string, std::vector<StateFeature>> stateFileSpecs;
std::string newTarget; std::string newTarget;