31 lines
744 B
C
31 lines
744 B
C
/*----------------------------------------------------------------------------
|
|
* debug.h:
|
|
* Debug Function
|
|
*----------------------------------------------------------------------------
|
|
* nes: Nintendo Entertainment System Emulator.
|
|
*
|
|
* Created by Jean-Baptiste Nadal on 12/02/08.
|
|
* Copyright 2008. All rights reserved.
|
|
*----------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef __DEBUG_H
|
|
#define __DEBUG_H
|
|
|
|
extern void DebugPrint (const char *format,...);
|
|
|
|
#ifdef DEBUG
|
|
# define DEBUG_REGS(a) printRegs(a)
|
|
# define DEBUG0(a) do { DebugPrint a; }while(0)
|
|
# define DEBUG1(a)
|
|
# define DEBUG2(a)
|
|
#else
|
|
# define DEBUG_REGS
|
|
# define DEBUG0(a)
|
|
# define DEBUG1(a)
|
|
# define DEBUG2(a)
|
|
#endif
|
|
|
|
|
|
#endif
|