26 lines
361 B
C
26 lines
361 B
C
/*
|
|
debug.h
|
|
|
|
(C) 2018 Henryk Richter <henryk.richter@gmx.net>
|
|
|
|
Debugging Macros
|
|
|
|
|
|
*/
|
|
#ifndef _INC_DEBUG_H
|
|
#define _INC_DEBUG_H
|
|
|
|
#ifdef DEBUG
|
|
extern void KPrintF(char *, ...), KGetChar(void);
|
|
|
|
#define D(_x_) do { KPrintF("%s:%ld:",__FILE__,__LINE__); KPrintF _x_; } while(0)
|
|
|
|
#else /* DEBUG */
|
|
|
|
#define D(x)
|
|
|
|
#endif /* DEBUG */
|
|
|
|
|
|
#endif /* _INC_DEBUG_H */
|