add messages to breakpoints
This commit is contained in:
@@ -27,8 +27,9 @@
|
|||||||
struct VirtualDubCheckpoint {
|
struct VirtualDubCheckpoint {
|
||||||
const char *file;
|
const char *file;
|
||||||
int line;
|
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)
|
#define CHECKPOINT_COUNT (16)
|
||||||
@@ -45,6 +46,7 @@ struct VirtualDubThreadState {
|
|||||||
EXTERN __declspec(thread) VirtualDubThreadState g_PerThreadState;
|
EXTERN __declspec(thread) VirtualDubThreadState g_PerThreadState;
|
||||||
|
|
||||||
#define VDCHECKPOINT (g_PerThreadState.cp[g_PerThreadState.nNextCP++&(CHECKPOINT_COUNT-1)].set(__FILE__, __LINE__))
|
#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 VirtualDubInitializeThread(const char *pszName);
|
||||||
void VirtualDubDeinitializeThread();
|
void VirtualDubDeinitializeThread();
|
||||||
|
|||||||
Reference in New Issue
Block a user