namespace {
// dummy function to call at place where break point might be needed
- inline void place_for_breakpoint () {}
-}
+ static unsigned debug_counter = 0;
+ inline void place_for_breakpoint () {
+ // this statement is just to have any instruction in object code,
+ // otherwise compiler does not leave a place for break point
+ debug_counter++;
+ }
+};
//=======================================================================
//function : GetCallback
#ifdef WNT
#include <crtdbg.h>
-#if _MSC_VER == 1500 /* VS 2008 */
+#if _MSC_VER >= 1500 /* VS 2008 */
static long getRequestNum(void* pvData, long lRequest, size_t& theSize)
{
return aHeader->lRequest;
}
-#else /* _MSC_VER == 1500 */
+#else /* _MSC_VER < 1500 */
static long getRequestNum(void* /*pvData*/, long lRequest, size_t& /*theSize*/)
{