From a5f12f66bb94761bc1e426e70291340b6c72955e Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Fri, 3 Jan 2025 21:23:10 -0500 Subject: [PATCH] Define the default `-r`ecursion depth in main.cpp with other default values --- include/asm/fstack.hpp | 1 - src/asm/main.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/asm/fstack.hpp b/include/asm/fstack.hpp index 76bc7a2d..ccb74190 100644 --- a/include/asm/fstack.hpp +++ b/include/asm/fstack.hpp @@ -46,7 +46,6 @@ struct FileStackNode { std::string const &dump(uint32_t curLineNo) const; }; -#define DEFAULT_MAX_DEPTH 64 extern size_t maxRecursionDepth; struct MacroArgs; diff --git a/src/asm/main.cpp b/src/asm/main.cpp index 6b7cf2f6..390766fd 100644 --- a/src/asm/main.cpp +++ b/src/asm/main.cpp @@ -128,7 +128,7 @@ int main(int argc, char *argv[]) { opt_P(0); opt_Q(16); sym_SetExportAll(false); - uint32_t maxDepth = DEFAULT_MAX_DEPTH; + uint32_t maxDepth = 64; char const *dependFileName = nullptr; std::unordered_map> stateFileSpecs; std::string newTarget;