Fix cache, misc changes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "../core_library/core.c"
|
||||
|
||||
#define CL_Arena MA_Arena
|
||||
#define CL_PushSize MA_PushSizeNonZeroed
|
||||
#define CL_Allocator MA_Arena *
|
||||
#define CL_Allocate(a, s) MA_PushSizeNonZeroed(a, s)
|
||||
#define CL_ASSERT IO_Assert
|
||||
#define CL_VSNPRINTF stbsp_vsnprintf
|
||||
#define CL_SNPRINTF stbsp_snprintf
|
||||
|
||||
@@ -78,7 +78,7 @@ int main() {
|
||||
{
|
||||
for (OS_FileIter it = OS_IterateFiles(&arena, S8_Lit("..")); OS_IsValid(it); OS_Advance(&it)) {
|
||||
if (it.is_directory) {
|
||||
IO_Assert(it.absolute_path.str[it.absolute_path.len - 1] == '/');
|
||||
IO_Assertf(it.absolute_path.str[it.absolute_path.len - 1] == '/', "%.*s", S8_Expand(it.absolute_path));
|
||||
}
|
||||
IO_Assert(!S8_Seek(it.absolute_path, S8_Lit(".."), 0, 0));
|
||||
IO_Assert(S8_Seek(it.relative_path, S8_Lit(".."), 0, 0));
|
||||
|
||||
Reference in New Issue
Block a user