Initialize maxRecursionDepth with other options

This commit is contained in:
Rangi42
2025-07-21 19:58:37 -04:00
parent ee0f311c10
commit 8d268e8a8a
5 changed files with 12 additions and 17 deletions

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);