mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
hack-in temp backslash for windows
This commit is contained in:
committed by
Ryan Fleury
parent
2102239b81
commit
857ab15aaa
@@ -137,7 +137,11 @@ t_delete_dir(String8 path)
|
|||||||
internal String8
|
internal String8
|
||||||
t_make_file_path(Arena *arena, String8 name)
|
t_make_file_path(Arena *arena, String8 name)
|
||||||
{
|
{
|
||||||
|
#if OS_WINDOWS
|
||||||
|
return push_str8f(arena, "%S\\%S", g_wdir, name);
|
||||||
|
#else
|
||||||
return push_str8f(arena, "%S/%S", g_wdir, name);
|
return push_str8f(arena, "%S/%S", g_wdir, name);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
internal B32
|
internal B32
|
||||||
|
|||||||
@@ -5134,7 +5134,7 @@ TEST(debug_p_and_debug_t_in_obj)
|
|||||||
String8 expected_line = str8f(arena, "Warning(%03d): %S: multiple sections with debug types detected, obj must have either .debug$T or .debug$P; discarding both sections", LNK_Warning_MultipleDebugTAndDebugP, pch_obj_path);
|
String8 expected_line = str8f(arena, "Warning(%03d): %S: multiple sections with debug types detected, obj must have either .debug$T or .debug$P; discarding both sections", LNK_Warning_MultipleDebugTAndDebugP, pch_obj_path);
|
||||||
while (output.size) {
|
while (output.size) {
|
||||||
String8 line = t_chop_line(&output);
|
String8 line = t_chop_line(&output);
|
||||||
found_warning = str8_match(line, expected_line, StringMatchFlag_CaseInsensitive);
|
found_warning = str8_match(line, expected_line, StringMatchFlag_CaseInsensitive|StringMatchFlag_SlashInsensitive);
|
||||||
if (found_warning) { break; }
|
if (found_warning) { break; }
|
||||||
}
|
}
|
||||||
T_Ok(found_warning);
|
T_Ok(found_warning);
|
||||||
|
|||||||
Reference in New Issue
Block a user