sys: improve DEBUGRANDTEST (add fsp_dt control variable)

This commit is contained in:
Bill Zissimopoulos 2016-03-04 15:36:53 -08:00
parent 4d3a169da6
commit 84be6692b8

View File

@ -73,7 +73,9 @@ extern __declspec(selectany) int fsp_bp = 1;
/* DEBUGRANDTEST */
#if DBG
#define DEBUGRANDTEST(Percent, Default) (DebugRandom() <= (Percent) * 0x7fff / 100 ? (Default) : !(Default))
extern __declspec(selectany) int fsp_dt = 1;
#define DEBUGRANDTEST(Percent, Default) \
(!fsp_dt || DebugRandom() <= (Percent) * 0x7fff / 100 ? (Default) : !(Default))
#else
#define DEBUGRANDTEST(Percent, Default) (Default)
#endif