mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 15:54:45 -08:00
Formatting fixes
This commit is contained in:
parent
4a87a42db0
commit
387787b88d
@ -62,7 +62,7 @@ void* Global_Allocator_Proc( void* allocator_data, AllocType type, sw size, sw a
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal
|
internal
|
||||||
void define_constants()
|
void define_constants()
|
||||||
{
|
{
|
||||||
Code::Global = make_code();
|
Code::Global = make_code();
|
||||||
Code::Global->Name = get_cached_string( txt_StrC("Global Code") );
|
Code::Global->Name = get_cached_string( txt_StrC("Global Code") );
|
||||||
@ -361,7 +361,6 @@ StringCached get_cached_string( StrC str )
|
|||||||
}
|
}
|
||||||
|
|
||||||
String result = String::make( get_string_allocator( str.Len ), str );
|
String result = String::make( get_string_allocator( str.Len ), str );
|
||||||
|
|
||||||
StringCache.set( key, result );
|
StringCache.set( key, result );
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -27,8 +27,8 @@ Code make_code();
|
|||||||
void set_allocator_data_arrays ( AllocatorInfo data_array_allocator );
|
void set_allocator_data_arrays ( AllocatorInfo data_array_allocator );
|
||||||
void set_allocator_code_pool ( AllocatorInfo pool_allocator );
|
void set_allocator_code_pool ( AllocatorInfo pool_allocator );
|
||||||
void set_allocator_lexer ( AllocatorInfo lex_allocator );
|
void set_allocator_lexer ( AllocatorInfo lex_allocator );
|
||||||
void set_allocator_string_arena ( AllocatorInfo string_allocator );
|
void set_allocator_string_arena( AllocatorInfo string_allocator );
|
||||||
void set_allocator_string_table ( AllocatorInfo string_allocator );
|
void set_allocator_string_table( AllocatorInfo string_allocator );
|
||||||
void set_allocator_type_table ( AllocatorInfo type_reg_allocator );
|
void set_allocator_type_table ( AllocatorInfo type_reg_allocator );
|
||||||
|
|
||||||
#pragma region Upfront
|
#pragma region Upfront
|
||||||
@ -152,4 +152,3 @@ Code untyped_str ( StrC content);
|
|||||||
Code untyped_fmt ( char const* fmt, ... );
|
Code untyped_fmt ( char const* fmt, ... );
|
||||||
Code untyped_token_fmt( char const* fmt, s32 num_tokens, ... );
|
Code untyped_token_fmt( char const* fmt, s32 num_tokens, ... );
|
||||||
#pragma endregion Untyped text
|
#pragma endregion Untyped text
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ enum class OpValidateResult : u32
|
|||||||
};
|
};
|
||||||
|
|
||||||
inline
|
inline
|
||||||
OpValidateResult operator__validate( OperatorT op, CodeParam params_code, CodeType ret_type, CodeSpecifiers specifier )
|
OpValidateResult operator__validate( OperatorT op, CodeParam params_code, CodeType ret_type, CodeSpecifiers specifier )
|
||||||
{
|
{
|
||||||
using namespace EOperator;
|
using namespace EOperator;
|
||||||
|
|
||||||
@ -1828,4 +1828,3 @@ CodeBody def_union_body( s32 num, CodeUnion* codes )
|
|||||||
# undef name_check
|
# undef name_check
|
||||||
# undef null_check
|
# undef null_check
|
||||||
# undef null_or_invalid_check
|
# undef null_or_invalid_check
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
#define size_of( x ) ( sw )( sizeof( x ) )
|
#define size_of( x ) ( sw )( sizeof( x ) )
|
||||||
|
|
||||||
template< class Type >
|
template< class Type >
|
||||||
void swap( Type a, Type b )
|
void swap( Type& a, Type& b )
|
||||||
{
|
{
|
||||||
Type tmp = a;
|
Type tmp = a;
|
||||||
a = b;
|
a = b;
|
||||||
|
Loading…
Reference in New Issue
Block a user