Mac debugging
This commit is contained in:
@@ -52,9 +52,11 @@ OS_API S8_String OS_GetExePath(MA_Arena *arena) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OS_API S8_String OS_GetExeDir(MA_Arena *arena) {
|
OS_API S8_String OS_GetExeDir(MA_Arena *arena) {
|
||||||
S8_String path = OS_GetExePath(arena);
|
MA_Checkpoint scratch = MA_GetScratch();
|
||||||
|
S8_String path = OS_GetExePath(scratch.arena);
|
||||||
path = S8_ChopLastSlash(path);
|
path = S8_ChopLastSlash(path);
|
||||||
path.str[path.len] = 0;
|
path = S8_Copy(arena, path);
|
||||||
|
MA_ReleaseScratch(scratch);
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -421,9 +423,12 @@ OS_API bool OS_IsAbsolute(S8_String path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OS_API S8_String OS_GetExeDir(MA_Arena *arena) {
|
OS_API S8_String OS_GetExeDir(MA_Arena *arena) {
|
||||||
S8_String path = OS_GetExePath(arena);
|
MA_Checkpoint scratch = MA_GetScratch();
|
||||||
|
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(dir));
|
||||||
S8_String copy = S8_Copy(arena, dir);
|
S8_String copy = S8_Copy(arena, dir);
|
||||||
|
MA_ReleaseScratch(scratch);
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ int main() {
|
|||||||
TestBootstrapExclusive();
|
TestBootstrapExclusive();
|
||||||
TestBootstrapArenaClear();
|
TestBootstrapArenaClear();
|
||||||
|
|
||||||
// TestClexer();
|
TestClexer();
|
||||||
// IO_Printf("TestClexer() - DONE\n");
|
IO_Printf("TestClexer() - DONE\n");
|
||||||
|
|
||||||
// Unicode iteration over codepoints using For
|
// Unicode iteration over codepoints using For
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user