| 46 | }; |
| 47 | |
| 48 | static bool should_disable_serial(BAN::StringView full_command_line) |
| 49 | { |
| 50 | const char* start = full_command_line.data(); |
| 51 | const char* current = start; |
| 52 | while (true) |
| 53 | { |
| 54 | if (!*current || *current == ' ' || *current == '\t') |
| 55 | { |
| 56 | if (current - start == 8 && memcmp(start, "noserial", 8) == 0) |
| 57 | return true; |
| 58 | if (!*current) |
| 59 | break; |
| 60 | start = current + 1; |
| 61 | } |
| 62 | current++; |
| 63 | } |
| 64 | |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | extern bool g_disable_debug; |
| 69 | static ParsedCommandLine cmdline; |