From b1ba52f3fe96a28a3cf5510958a5e53e53d6af74 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 7 Sep 2002 20:58:16 +0000 Subject: [PATCH] add messages to breakpoints --- stepmania/src/Crash.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Crash.h b/stepmania/src/Crash.h index 4eadc35a9a..60ddf96f2f 100644 --- a/stepmania/src/Crash.h +++ b/stepmania/src/Crash.h @@ -27,8 +27,9 @@ struct VirtualDubCheckpoint { const char *file; int line; + const char *message; - inline void set(const char *f, int l) { file=f; line=l; } + inline void set(const char *f, int l, const char *m=NULL) { file=f; line=l; message=m; } }; #define CHECKPOINT_COUNT (16) @@ -45,6 +46,7 @@ struct VirtualDubThreadState { EXTERN __declspec(thread) VirtualDubThreadState g_PerThreadState; #define VDCHECKPOINT (g_PerThreadState.cp[g_PerThreadState.nNextCP++&(CHECKPOINT_COUNT-1)].set(__FILE__, __LINE__)) +#define VDCHECKPOINT_M(m) (g_PerThreadState.cp[g_PerThreadState.nNextCP++&(CHECKPOINT_COUNT-1)].set(__FILE__, __LINE__, (m))) void VirtualDubInitializeThread(const char *pszName); void VirtualDubDeinitializeThread();