mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-11-04 12:34:39 +08:00 
			
		
		
		
	Merge pull request #618 from lioncash/ref
result: Make comparison operators take references
This commit is contained in:
		
						commit
						9a47eb117c
					
				@ -208,11 +208,11 @@ union ResultCode {
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
inline bool operator==(const ResultCode a, const ResultCode b) {
 | 
			
		||||
inline bool operator==(const ResultCode& a, const ResultCode& b) {
 | 
			
		||||
    return a.raw == b.raw;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
inline bool operator!=(const ResultCode a, const ResultCode b) {
 | 
			
		||||
inline bool operator!=(const ResultCode& a, const ResultCode& b) {
 | 
			
		||||
    return a.raw != b.raw;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user