mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-11-03 23:36:12 -08:00 
			
		
		
		
	bug fix
This commit is contained in:
		@@ -134,7 +134,7 @@ Code begin( CodeBody body) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
inline
 | 
					inline
 | 
				
			||||||
Code end(CodeBody body ){
 | 
					Code end(CodeBody body ){
 | 
				
			||||||
	return { rcast(AST*, body.ast)->Back->Next };
 | 
						return { nullptr };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#pragma endregion CodeBody
 | 
					#pragma endregion CodeBody
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3893,11 +3893,11 @@ CodeFriend parse_friend()
 | 
				
			|||||||
		// if ( params )
 | 
							// if ( params )
 | 
				
			||||||
			// function->Params = params;
 | 
								// function->Params = params;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
					
 | 
				
			||||||
	// Operator declaration or definition
 | 
						// Operator declaration or definition
 | 
				
			||||||
	if ( currtok.Type == Tok_Decl_Operator )
 | 
						if ( currtok.Type == Tok_Decl_Operator )
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		op = parse_operator_after_ret_type( ModuleFlag_None, NullCode, type );
 | 
							op = parse_operator_after_ret_type( ModuleFlag_None, NullCode, NullCode, type );
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	CodeComment inline_cmt = NullCode;
 | 
						CodeComment inline_cmt = NullCode;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,8 +32,8 @@ struct StrC
 | 
				
			|||||||
	StrC        duplicate           (AllocatorInfo allocator) const { return GEN_NS duplicate(* this, allocator); }
 | 
						StrC        duplicate           (AllocatorInfo allocator) const { return GEN_NS duplicate(* this, allocator); }
 | 
				
			||||||
	b32         starts_with         (StrC substring)          const { return GEN_NS starts_with(* this, substring); }
 | 
						b32         starts_with         (StrC substring)          const { return GEN_NS starts_with(* this, substring); }
 | 
				
			||||||
	StrC        visualize_whitespace(AllocatorInfo allocator) const { return GEN_NS visualize_whitespace(* this, allocator); }
 | 
						StrC        visualize_whitespace(AllocatorInfo allocator) const { return GEN_NS visualize_whitespace(* this, allocator); }
 | 
				
			||||||
#endif // GEN_SUPPORT_CPP_MEMBER_FUNCTIONS
 | 
					#endif
 | 
				
			||||||
#endif // GEN_COMPILERC
 | 
					#endif
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define cast_to_strc( str ) * rcast( StrC*, (str) - sizeof(ssize) )
 | 
					#define cast_to_strc( str ) * rcast( StrC*, (str) - sizeof(ssize) )
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user