aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorflysand7 <thebumboni@gmail.com>2025-01-17 01:12:23 +0300
committerflysand7 <thebumboni@gmail.com>2025-01-17 01:12:23 +0300
commit4f0206ce08593628bf9458b623f61c2989558f69 (patch)
tree1975f14ce2f710f48530affb629c71a83182ec44 /src/main.cpp
parentaa3f0b86c143802d9e81122698e38361751c7a68 (diff)
Added compile-time checks for thread locals with -no-crt
Now using any thread-local variables with -no-crt enabled will cause a compiler error, unless -no-thread-local is given. Also fixed a minor typo in a comment.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1de5d987b..24e33850e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2334,6 +2334,10 @@ gb_internal void print_show_help(String const arg0, String command, String optio
print_usage_line(2, "Sets the default allocator to be the nil_allocator, an allocator which does nothing.");
}
+ if (print_flag("-default-to-panic-allocator")) {
+ print_usage_line(2, "Sets the default allocator to be the panic_allocator, an allocator which calls panic() on any allocation attempt.");
+ }
+
if (print_flag("-define:<name>=<value>")) {
print_usage_line(2, "Defines a scalar boolean, integer or string as global constant.");
print_usage_line(2, "Example: -define:SPAM=123");