getMaxRecursionDepth: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page GetMaxRecursionDepth to getMaxRecursionDepth: Converting page titles to lowercase)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 6: Line 6:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
getMaxRecursionDepth()
getMaxRecursionDepth()
</source>
</source>


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: getMaxRecursionDepth()]
[r: getMaxRecursionDepth()]
</source>
</source>

Revision as of 18:38, 14 March 2023

getMaxRecursionDepth() Function

Introduced in version 1.4.0.2
Returns the max amount of recursive calls that are allowed. However The recursion depth of the parser is not quite straight forward, there are actually two different recursion depths that track two different types of recursive calls, you can have up to 150 of each, the getRecursionDepth() will return the greater of the two levels.

Usage

<syntaxhighlight lang="mtmacro" line> getMaxRecursionDepth() </source>

Example

<syntaxhighlight lang="mtmacro" line>

[r: getMaxRecursionDepth()]

</source>

See Also