diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-31 22:45:08 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-31 22:45:08 +0100 |
| commit | cd09068e335c8446a9d48dd1bd9868989e531c5e (patch) | |
| tree | 86376dcc8d0c7e6a5cb0be69d39b0d6a9d926223 /src/main.cpp | |
| parent | cd4687cb13d57c3de1231fdf34f834192f8d8a2f (diff) | |
Correct parsing rules for `#assert` directives for semicolons
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index b4e6c08af..6a0bf381c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1308,11 +1308,11 @@ bool parse_build_flags(Array<String> args) { case BuildFlag_InsertSemicolon: gb_printf_err("-insert-semicolon flag is not required any more\n"); + bad_flags = true; break; case BuildFlag_StrictStyle: - gb_printf_err("-strict-style flag is not required any more\n"); - bad_flags = true; + build_context.strict_style = true; break; @@ -1870,8 +1870,8 @@ void print_show_help(String const arg0, String const &command) { print_usage_line(2, "Sets the default allocator to be the nil_allocator, an allocator which does nothing"); print_usage_line(0, ""); - print_usage_line(1, "-insert-semicolon"); - print_usage_line(2, "Inserts semicolons on newlines during tokenization using a basic rule"); + print_usage_line(1, "-strict-style"); + print_usage_line(2, "Errs on unneeded tokens, such as unneeded semicolons"); print_usage_line(0, ""); print_usage_line(1, "-ignore-warnings"); |