#ifndef DEBUG_H
#define DEBUG_H

#ifdef DEBUG
#define dbuglevel(level,args) \
	if (level <= DEBUG) \
		((struct ExecIFace *)(*(struct ExecBase **)4)->MainInterface)->DebugPrintF args
#else
#define dbuglevel(level,args)
#endif
#define dbug(args) dbuglevel(1,args)
#define dbug2(args) dbuglevel(2,args)

#endif
