Core: Conditional compound to fix Msvc, better assert but printf based, Fix tests

This commit is contained in:
Krzosa Karol
2023-04-21 07:55:34 +02:00
parent fb3800a43a
commit e6bf6b680e
13 changed files with 71 additions and 59 deletions

View File

@@ -108,7 +108,7 @@ static void compile_file(Allocator *allocator, String filename, U32 compile_flag
F64 begin = os_time();
if (!is_flag_set(compile_flags, DONT_USE_C_COMPILER)) {
String_Builder builder = {scratch};
builder.addf("clang generated_main.c vendor\\raylib\\windows\\raylibdll.lib -Wall -Wno-unused-function -Wno-parentheses-equality -g -o a" OS_EXE " ");
builder.addf("clang generated_main.c -Wall -Wno-unused-function -Wno-parentheses-equality -g -o a" OS_EXE " ");
For(pctx->files_to_link) {
builder.addf("-l%Q ", it->intern_val);
}
@@ -170,7 +170,6 @@ int main(int argument_count, char **arguments) {
}
For(args) {
if (it == "-testing"_s) {
Scoped_Arena _scope(&scratch);
Array<OS_File_Info> examples = os_list_dir(&scratch, &scratch, "examples"_s);
@@ -193,7 +192,7 @@ int main(int argument_count, char **arguments) {
}
}
printf("End of program\n");
#if 0 // OS_WINDOWS
#if 1
if (IsDebuggerPresent()) {
Breakpoint;
}