Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/application
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-04-30 15:14:49 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2025-04-30 15:14:49 +1000
commita521dc5c74d54466dd3fc432057b96c30504a748 (patch)
tree8240eff0bdf1aba309c27ed0a9e772a2db43e425 /source/application
parentd8db6199e13b5405123f18cc1a9631f7e7f4794a (diff)
Guarantee stack space in exception handling so printing stack overflows doesn't fail
Diffstat (limited to 'source/application')
-rw-r--r--source/application/StarMainApplication.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/application/StarMainApplication.hpp b/source/application/StarMainApplication.hpp
index 5ba06e7..172e2da 100644
--- a/source/application/StarMainApplication.hpp
+++ b/source/application/StarMainApplication.hpp
@@ -22,6 +22,8 @@ namespace Star {
freopen("CONOUT$", "w", stdout); \
freopen("CONOUT$", "w", stderr); \
} \
+ unsigned long exceptionStackSize = 16384; \
+ SetThreadStackGuarantee(&exceptionStackSize); \
return Star::runMainApplication(Star::make_unique<ApplicationClass>(), args); \
}