mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
af81645a2a
This is very handy for the DebugLogStream implementation, among others. :^)
18 lines
312 B
C
18 lines
312 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 ksprintf(char* buf, const char* fmt, ...);
|
|
}
|
|
|
|
#ifndef USERLAND
|
|
# define printf dbgprintf
|
|
#endif
|
|
|
|
#ifndef __serenity__
|
|
#define dbgprintf printf
|
|
#endif
|