getMaxRecursionDepth: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=getMaxRecusionDepth |version=1.4.0 |description Returns the max amount of recursive calls that are allowed. However The recursion depth of the parser is...")
 
m (Text replacement - "source>" to "syntaxhighlight>")
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=getMaxRecusionDepth
|name=getMaxRecursionDepth
|version=1.4.0
|version=1.4.0.2
|description
|description=
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.
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=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
getMaxRecusionDepth()
getMaxRecursionDepth()
</source>
</syntaxhighlight>


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: getMaxRecusionDepth()]
[r: getMaxRecursionDepth()]
</source>
</syntaxhighlight>
 
|also=
{{func|getRecursionDepth}},
{{func|setMaxRecursionDepth}}.
 
}}
}}
[[Category:Loop and Recursion limits]]
[[Category:Loop and Recursion limits]]

Latest revision as of 23:59, 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

getMaxRecursionDepth()

Example

[r: getMaxRecursionDepth()]

See Also