mirror of
https://github.com/deadw00d/AROS.git
synced 2026-03-19 11:39:53 +00:00
git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@54669 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
40 lines
950 B
C
40 lines
950 B
C
/*
|
|
* Copyright (C) 2011, The AROS Development Team. All rights reserved.
|
|
* Author: Jason S. McMullan <jason.mcmullan@gmail.com>
|
|
*
|
|
* Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
|
|
*/
|
|
|
|
#ifndef DEBUG_H
|
|
#define DEBUG_H
|
|
|
|
#ifndef DEBUG
|
|
#define DEBUG 0
|
|
#endif
|
|
|
|
#include <aros/config.h>
|
|
|
|
void DebugInit(void);
|
|
int DebugPutChar(register int chr);
|
|
int DebugMayGetChar(void);
|
|
|
|
#if AROS_SERIAL_DEBUG
|
|
void DebugPutStr(register const char *buff);
|
|
void DebugPutHex(const char *what, ULONG val);
|
|
void DebugPutDec(const char *what, ULONG val);
|
|
void DebugPutHexVal(ULONG val);
|
|
#if DEBUG > 0
|
|
#define DEBUGPUTS(x) do { DebugPutStr x; } while(0)
|
|
#define DEBUGPUTD(x) do { DebugPutDec x; } while(0)
|
|
#define DEBUGPUTHEX(x) do { DebugPutHex x; } while(0)
|
|
#endif
|
|
#endif /* !AROS_SERIAL_DEBUG */
|
|
|
|
#ifndef DEBUGPUTS
|
|
#define DEBUGPUTS(x) do { } while (0)
|
|
#define DEBUGPUTD(x) do { } while (0)
|
|
#define DEBUGPUTHEX(x) do { } while (0)
|
|
#endif
|
|
|
|
#endif /* DEBUG_H */
|