Missing change
This commit is contained in:
@@ -157,6 +157,7 @@ static void compile_file(Allocator *allocator, String filename, U32 compile_flag
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argument_count, char **arguments) {
|
int main(int argument_count, char **arguments) {
|
||||||
|
os_enable_console_colors();
|
||||||
Arena arena = {};
|
Arena arena = {};
|
||||||
Arena scratch = {};
|
Arena scratch = {};
|
||||||
arena_init(&arena, "Pernament arena"_s);
|
arena_init(&arena, "Pernament arena"_s);
|
||||||
@@ -173,36 +174,6 @@ int main(int argument_count, char **arguments) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool enable_color_codes = false;
|
|
||||||
#if OS_UNIX
|
|
||||||
enable_color_codes = true;
|
|
||||||
#endif
|
|
||||||
#if OS_WINDOWS
|
|
||||||
// Set output mode to handle virtual terminal sequences
|
|
||||||
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
|
|
||||||
if (hOut != INVALID_HANDLE_VALUE) {
|
|
||||||
DWORD dwMode = 0;
|
|
||||||
if (GetConsoleMode(hOut, &dwMode)) {
|
|
||||||
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
|
|
||||||
if (SetConsoleMode(hOut, dwMode)) {
|
|
||||||
enable_color_codes = true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
printf("Failed to enable colored terminal output C\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
printf("Failed to enable colored terminal output B\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
printf("Failed to enable colored terminal output A\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
test_os_memory();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
(void)enable_color_codes;
|
|
||||||
For(args) {
|
For(args) {
|
||||||
|
|
||||||
if (it == "-testing"_s) {
|
if (it == "-testing"_s) {
|
||||||
@@ -225,5 +196,11 @@ int main(int argument_count, char **arguments) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
printf("End of program\n");
|
printf("End of program\n");
|
||||||
|
#if OS_WINDOWS
|
||||||
|
if (IsDebuggerPresent()) {
|
||||||
|
Breakpoint;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user