mirror of
https://github.com/Ed94/gencpp.git
synced 2025-07-06 21:55:44 -07:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user