mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-15 03:01:47 -07:00
Single header generates again, some more cleanup.
Looking into properly dealing with empty lines... I want to preserve the text's empty lines in the AST for serialization purposes (perserve formatting for gapes between definitions). Don't want to introduce the possibility of it breaking though, so will have to ignore empty_lines in a general way (if they are in a bad spot). Attempted to cover that by having TokArray::current() auto-skip empty lines and eat as well if the type doesn't match.
This commit is contained in:
@ -117,5 +117,5 @@ typedef s8 b8;
|
||||
typedef s16 b16;
|
||||
typedef s32 b32;
|
||||
|
||||
#pragma region Basic Types
|
||||
#pragma endregion Basic Types
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma endregion Debug
|
||||
#pragma region Debug
|
||||
|
||||
void assert_handler( char const* condition, char const* file, s32 line, char const* msg, ... )
|
||||
{
|
||||
|
@ -82,5 +82,5 @@ u64 crc64( void const* data, sw len )
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma region Hashing
|
||||
#pragma endregion Hashing
|
||||
|
||||
|
@ -799,7 +799,6 @@ ADT_Error adt_str_to_number_strict( ADT_Node* node )
|
||||
# define GEN_CSV_ASSERT( msg )
|
||||
#endif
|
||||
|
||||
|
||||
u8 csv_parse_delimiter( CSV_Object* root, char* text, AllocatorInfo allocator, b32 has_header, char delim )
|
||||
{
|
||||
CSV_Error error = ECSV_Error__NONE;
|
||||
|
@ -58,3 +58,4 @@ sw fatal(char const* fmt, ...)
|
||||
}
|
||||
|
||||
#pragma endregion Printing
|
||||
|
||||
|
Reference in New Issue
Block a user