mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-11-03 15:26:12 -08:00 
			
		
		
		
	Progresss
This commit is contained in:
		@@ -8,7 +8,7 @@ using SwapContentProc = CodeBody(void);
 | 
			
		||||
b32 ignore_preprocess_cond_block( StrC cond_sig, Code& entry_iter, CodeBody& body )
 | 
			
		||||
{
 | 
			
		||||
	b32 found = false;
 | 
			
		||||
	CodePreprocessCond cond = entry_iter.cast<CodePreprocessCond>();
 | 
			
		||||
	CodePreprocessCond cond = entry_iter.code_cast<CodePreprocessCond>();
 | 
			
		||||
	if ( cond->Content.contains(cond_sig) )
 | 
			
		||||
	{
 | 
			
		||||
		log_fmt("Preprocess cond found: %S\n", cond->Content);
 | 
			
		||||
@@ -44,7 +44,7 @@ b32 ignore_preprocess_cond_block( StrC cond_sig, Code& entry_iter, CodeBody& bod
 | 
			
		||||
bool swap_pragma_region_implementation( StrC region_name, SwapContentProc* swap_content, Code& entry_iter, CodeBody& body )
 | 
			
		||||
{
 | 
			
		||||
	bool found = false;
 | 
			
		||||
	CodePragma possible_region = entry_iter.cast<CodePragma>();
 | 
			
		||||
	CodePragma possible_region = entry_iter.code_cast<CodePragma>();
 | 
			
		||||
 | 
			
		||||
	String region_sig    = string_fmt_buf(GlobalAllocator, "region %s",    region_name.Ptr);
 | 
			
		||||
	String endregion_sig = string_fmt_buf(GlobalAllocator, "endregion %s", region_name.Ptr);
 | 
			
		||||
@@ -58,7 +58,7 @@ bool swap_pragma_region_implementation( StrC region_name, SwapContentProc* swap_
 | 
			
		||||
		(entry_iter->Type) {
 | 
			
		||||
			case ECode::Preprocess_Pragma:
 | 
			
		||||
			{
 | 
			
		||||
				CodePragma possible_end_region = entry_iter.cast<CodePragma>();
 | 
			
		||||
				CodePragma possible_end_region = entry_iter.code_cast<CodePragma>();
 | 
			
		||||
				if ( possible_end_region->Content.contains(endregion_sig) ) {
 | 
			
		||||
					// body.append(possible_end_region);
 | 
			
		||||
					continue_for = false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user