setMaxRecursionDepth: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
</source>
</source>
Where  
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.
* ''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=
|example=

Revision as of 08:15, 20 July 2016

setMaxRecusionDepth() Function

Introduced in version 1.4.0
Returns the current amount of recursive calls that are used.

Usage

setMaxRecusionDepth(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: setMaxRecusionDepth(200)]

See Also