setMaxRecursionDepth: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (fix typo in function name) |
||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name= | |name=setMaxRecursionDepth | ||
|version=1.4.0.2 | |version=1.4.0.2 | ||
|description= | |description= | ||
Line 7: | Line 7: | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
setMaxRecursionDepth(depth) | |||
</source> | </source> | ||
Where | Where | ||
Line 14: | Line 14: | ||
|example= | |example= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: | [h: setMaxRecursionDepth(200)] | ||
</source> | </source> | ||
|also= | |also= | ||
{{func|getRecursionDepth}}, | {{func|getRecursionDepth}}, | ||
{{func| | {{func|getMaxRecursionDepth}}. | ||
}} | }} | ||
[[Category:Loop and Recursion limits]] | [[Category:Loop and Recursion limits]] |
Revision as of 22:31, 16 February 2019
setMaxRecursionDepth() Function
• Introduced in version 1.4.0.2
Returns the current amount of recursive calls that are used.
Usage
setMaxRecursionDepth(depth)
Where
- depth is the new maximum allowed recursive calls. Note that the depth can never be lower then the default depth, which is 150, setting it lower will result in a depth of 150. Setting this value higher is obviously at your own risk as this has a serious impact on the stack. Note that this settings lasts only for the current session.
Example
[h: setMaxRecursionDepth(200)]