Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1
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
51
62void consoleNocashMessage(const char *msg);
63
64/*============================================================================
65 * Macros
66 *============================================================================*/
67
71#define SNES_BREAK() consoleMesenBreakpoint()
72
77#define SNES_NOCASH(msg) consoleNocashMessage(msg)
78
87#ifdef NDEBUG
88 #define SNES_ASSERT(cond) ((void)0)
89#else
90 #define SNES_ASSERT(cond) do { if (!(cond)) { SNES_BREAK(); } } while(0)
91#endif
92
93#endif /* OPENSNES_DEBUG_H */
void consoleNocashMessage(const char *msg)
Send a debug message to the Nocash debug console.
void consoleMesenBreakpoint(void)
Trigger a Mesen2 debugger breakpoint.
OpenSNES Standard Types.