Initialize maxRecursionDepth with other options

This commit is contained in:
Rangi42 committed 2025-07-21 19:58:37 -04:00
1 parent ee0f311c10
commit 8d268e8a8a
5 files changed
+12 -17

No files matched your search

+1 -3
View File
@@ -410,11 +410,9 @@ void fstk_NewRecursionDepth(size_t newDepth) {
options.maxRecursionDepth = newDepth;
}
void fstk_Init(std::string const &mainPath, size_t maxDepth) {
void fstk_Init(std::string const &mainPath) {
newFileContext(mainPath, true);
options.maxRecursionDepth = maxDepth;
for (std::string const &name : preIncludeNames) {
if (std::optional<std::string> fullPath = fstk_FindFile(name); fullPath) {
newFileContext(*fullPath, false);