add messages to breakpoints

This commit is contained in:
Glenn Maynard
2002-09-07 20:58:16 +00:00
parent 7e1dca72a0
commit b1ba52f3fe
+3 -1
View File
@@ -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();