Files
nes-nes/src/debug.h
2009-02-05 08:24:50 +00:00

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