mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:52:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Format.h>
 | |
| 
 | |
| extern bool g_report_to_debug;
 | |
| 
 | |
| template<typename... Ts>
 | |
| void reportln(StringView format, Ts... args)
 | |
| {
 | |
|     if (g_report_to_debug) {
 | |
|         AK::VariadicFormatParams variadic_format_params { args... };
 | |
|         AK::vdbgln(format, variadic_format_params);
 | |
|     } else {
 | |
|         warnln(format, args...);
 | |
|     }
 | |
| }
 | 
