[ox/std] Make source_location::current only init if valid
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (push) Successful in 2m52s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (push) Successful in 2m52s
				
			This commit is contained in:
		
							
								
								
									
										2
									
								
								deps/ox/src/ox/std/source_location.hpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								deps/ox/src/ox/std/source_location.hpp
									
									
									
									
										vendored
									
									
								
							| @@ -40,7 +40,9 @@ class source_location { | ||||
|  | ||||
| 		static consteval source_location current(Raw const pSl = __builtin_source_location()) noexcept { | ||||
| 			source_location sl; | ||||
| 			if (pSl) { | ||||
| 				sl.m_data = static_cast<__impl const*>(pSl); | ||||
| 			} | ||||
| 			return sl; | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user