summaryrefslogtreecommitdiff
path: root/modules/dds
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2023-02-07 17:09:40 -0300
committerGeorge Marques <george@gmarqu.es>2023-02-07 17:09:40 -0300
commit34f0a2ca46bda37c49caf0a4e2feb25e1ce9ad4f (patch)
treea9d65de9167e4a5719f2421b312062bbe0d3ee27 /modules/dds
parenta05670c617abc1df93ebac5afacf3e6c48008a99 (diff)
GDScript: Add limit to call depth
The hard limit is set at 2048 depth which seems sensible between legitimate recursive calls while still avoiding a crash because of a stack overflow in most of the cases. Note that it is still possible to reach the stack limit and get an overflow before reaching a call depth. This is intended as a half-way measure to stop crashing in most cases, since there's no reliable nor portable way to check the amount of stack memory left.
Diffstat (limited to 'modules/dds')
0 files changed, 0 insertions, 0 deletions