Additions and fixes based off genc repo

Typedef parses enum namespaced types properly (C typedefs of enums to expose to global scope).
This commit is contained in:
2023-07-16 23:18:00 -04:00
parent 41dc0e3fbb
commit 2a319ed6db
4 changed files with 88 additions and 0 deletions

View File

@ -1626,6 +1626,19 @@ namespace gen
return err;
}
s64 file_size( FileInfo* f )
{
s64 size = 0;
s64 prev_offset = file_tell( f );
file_seek_to_end( f );
size = file_tell( f );
file_seek( f, prev_offset );
return size;
}
#pragma endregion File Handling
#pragma region String