Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Saturday, July 22, 2006 4:52 PM
How do i get the debugger to do ASSERTS in my console application?
error C3861: 'ASSERT': identifier not found
Multi-platform chess project.
Thanks Bill, MSEE, C++ challenged.
P.S. the top of util.h file...
// util.h
#ifndef UTIL_H
#define UTIL_H
// includes
#ifdef __BORLANDC__
#include <stdio.h> // had this in the cpp file too.
#else
#include <cstdio> // had this in the cpp file too.
#endif
// constants
#undef FALSE
#define FALSE 0
#undef TRUE
#define TRUE 1
#ifdef _MSC_VER
#ifdef _DEBUG
#undef DEBUG
#define DEBUG TRUE
#endif
#endif
#ifdef __BORLANDC__ // CBuilder 3.0 is too old for _DEBUG, ouch.
// #undef DEBUG
// #define DEBUG TRUE
#endif
#ifdef DEBUG
#undef DEBUG
#define DEBUG TRUE
#else
#define DEBUG FALSE
#endif
All replies (2)
Saturday, July 22, 2006 4:57 PM ✅Answered | 1 vote
#include <assert.h>
Wednesday, April 18, 2007 9:19 PM ✅Answered
#include <crtdbg.h>