OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1
34
35#ifndef OPENSNES_DEBUG_H
36#define OPENSNES_DEBUG_H
37
38#include <snes/types.h>
39
40/*============================================================================
41 * Functions (implemented in debug.asm)
42 *============================================================================*/
43
53
64void consoleNocashMessage(const char *msg);
65
66/*============================================================================
67 * Macros
68 *============================================================================*/
69
73#define SNES_BREAK() consoleMesenBreakpoint()
74
79#define SNES_NOCASH(msg) consoleNocashMessage(msg)
80
89#ifdef NDEBUG
90 #define SNES_ASSERT(cond) ((void)0)
91#else
92 #define SNES_ASSERT(cond) do { if (!(cond)) { SNES_BREAK(); } } while(0)
93#endif
94
95#endif /* OPENSNES_DEBUG_H */
void consoleNocashMessage(const char *msg)
Send a debug message to the Nocash debug console.
void consoleMesenBreakpoint(void)
Trigger an emulator breakpoint (WDM $00).
OpenSNES Standard Types.