27 lines
381 B
C
27 lines
381 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 STDARGS KPrintF(char *, ...);
|
|
extern void 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 */
|