Mac debugging
This commit is contained in:
@@ -426,7 +426,6 @@ OS_API S8_String OS_GetExeDir(MA_Arena *arena) {
|
|||||||
MA_Checkpoint scratch = MA_GetScratch();
|
MA_Checkpoint scratch = MA_GetScratch();
|
||||||
S8_String path = OS_GetExePath(scratch.arena);
|
S8_String path = OS_GetExePath(scratch.arena);
|
||||||
S8_String dir = S8_ChopLastSlash(path);
|
S8_String dir = S8_ChopLastSlash(path);
|
||||||
IO_Printf("DIR: %.*s\n", S8_Expand(path));
|
|
||||||
S8_String copy = S8_Copy(arena, dir);
|
S8_String copy = S8_Copy(arena, dir);
|
||||||
MA_ReleaseScratch(scratch);
|
MA_ReleaseScratch(scratch);
|
||||||
return copy;
|
return copy;
|
||||||
|
|||||||
@@ -55,9 +55,13 @@ int main() {
|
|||||||
S8_String dir_path = OS_GetExeDir(&arena);
|
S8_String dir_path = OS_GetExeDir(&arena);
|
||||||
S8_String work_path = OS_GetWorkingDir(&arena);
|
S8_String work_path = OS_GetWorkingDir(&arena);
|
||||||
S8_String abs_path = OS_GetAbsolutePath(&arena, read_file_path);
|
S8_String abs_path = OS_GetAbsolutePath(&arena, read_file_path);
|
||||||
|
/*
|
||||||
|
@todo: MAC
|
||||||
|
I have no idea what is happening on mac with this
|
||||||
|
|
||||||
IO_Printf("dir_path = %.*s\n", S8_Expand(dir_path));
|
dir_path = /Users/runner/work/first/first/build/test_filesystem_debug_clang_mac_os/test_filesystem.exe
|
||||||
IO_Printf("exe_path = %.*s\n", S8_Expand(exe_path));
|
exe_path = /Users/runner/work/first/first/build/test_filesystem_debug_clang_mac_os/test_filesystem.exe
|
||||||
|
*/
|
||||||
IO_Assert(OS_IsDir(dir_path));
|
IO_Assert(OS_IsDir(dir_path));
|
||||||
IO_Assert(!OS_IsFile(dir_path));
|
IO_Assert(!OS_IsFile(dir_path));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user