getMaxRecursionDepth: Difference between revisions
Jump to navigation
Jump to search
m (fix typo in function name) |
m (Text replacement - "source>" to "syntaxhighlight>") |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
getMaxRecursionDepth() | getMaxRecursionDepth() | ||
</ | </syntaxhighlight> | ||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: getMaxRecursionDepth()] | [r: getMaxRecursionDepth()] | ||
</ | </syntaxhighlight> | ||
|also= | |also= |
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()]