mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:22:45 +00:00 
			
		
		
		
	 44bc4008b7
			
		
	
	
		44bc4008b7
		
	
	
	
	
		
			
			Let's simplify things. There is now only KERNEL. To see if you're on Serenity, check if __serenity__ is defined.
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			371 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			371 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/Types.h>
 | |
| 
 | |
| extern "C" {
 | |
| int dbgprintf(const char* fmt, ...);
 | |
| int dbgputstr(const char*, int);
 | |
| int kprintf(const char* fmt, ...);
 | |
| int sprintf(char* buf, const char* fmt, ...);
 | |
| void set_serial_debug(bool on_or_off);
 | |
| int get_serial_debug();
 | |
| }
 | |
| 
 | |
| #ifdef KERNEL
 | |
| #    define printf dbgprintf
 | |
| #endif
 | |
| 
 | |
| #ifndef __serenity__
 | |
| #define dbgprintf printf
 | |
| #endif
 |