mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-11-03 15:26:12 -08:00 
			
		
		
		
	C-library gen progress: Header files mostly done, starting dep c impl and fixes to generic selection generation
This commit is contained in:
		@@ -24,7 +24,7 @@ b32 ignore_preprocess_cond_block( StrC cond_sig, Code& entry_iter, CodeBody& par
 | 
			
		||||
	CodePreprocessCond cond = cast(CodePreprocessCond, entry_iter);
 | 
			
		||||
	if ( cond->Content.is_equal(cond_sig) )
 | 
			
		||||
	{
 | 
			
		||||
		log_fmt("Preprocess cond found: %SC\n", cond->Content);
 | 
			
		||||
		//log_fmt("Preprocess cond found: %SC\n", cond->Content);
 | 
			
		||||
		found = true;
 | 
			
		||||
 | 
			
		||||
		s32 depth = 1;
 | 
			
		||||
@@ -105,7 +105,7 @@ R"(#define <macro_name>(selector_arg, ...) _Generic( (selector_arg), \
 | 
			
		||||
	for ( s32 slot = 1; slot <= num_slots; ++ slot )
 | 
			
		||||
	{
 | 
			
		||||
		StrC slot_str = String::fmt_buf(GlobalAllocator, "%d", slot).to_strc();
 | 
			
		||||
		if (slot == num_slots)
 | 
			
		||||
		if (slot == num_slots && false)
 | 
			
		||||
		{
 | 
			
		||||
			define_builder.append( token_fmt( "macro_name", macro_name, "slot", slot_str,
 | 
			
		||||
R"(		GEN_IF_MACRO_DEFINED_INCLUDE_THIS_SLOT_LAST(  GENERIC_SLOT_<slot>__<macro_name> ) \
 | 
			
		||||
@@ -128,6 +128,8 @@ R"(		GEN_IF_MACRO_DEFINED_INCLUDE_THIS_SLOT( GENERIC_SLOT_<slot>__<macro_name> )
 | 
			
		||||
		));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	define_builder.append( txt("default: gen_generic_selection_fail") );
 | 
			
		||||
 | 
			
		||||
	if ( ! one_arg )
 | 
			
		||||
	{
 | 
			
		||||
		if (opts == GenericSel_By_Ref)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user