Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A question about the precompiled directive ASSERT Pin
Rage21-Jan-03 22:28
professionalRage21-Jan-03 22:28 
GeneralRe: A question about the precompiled directive ASSERT Pin
George221-Jan-03 23:42
George221-Jan-03 23:42 
GeneralRe: A question about the precompiled directive ASSERT Pin
Rage22-Jan-03 0:01
professionalRage22-Jan-03 0:01 
GeneralRe: A question about the precompiled directive ASSERT Pin
George222-Jan-03 0:18
George222-Jan-03 0:18 
GeneralRe: A question about the precompiled directive ASSERT Pin
Rage22-Jan-03 0:52
professionalRage22-Jan-03 0:52 
GeneralRe: A question about the precompiled directive ASSERT Pin
Jörgen Sigvardsson22-Jan-03 3:28
Jörgen Sigvardsson22-Jan-03 3:28 
GeneralRe: A question about the precompiled directive ASSERT Pin
George222-Jan-03 15:37
George222-Jan-03 15:37 
GeneralRe: A question about the precompiled directive ASSERT Pin
Jörgen Sigvardsson22-Jan-03 21:58
Jörgen Sigvardsson22-Jan-03 21:58 
It's defined by the project files I believe. When you chose a debug configuration, the compiler is passed "/D_DEBUG" IIRC.

This is however not the standard way. The standard way is to define NDEBUG (not debug) in release builds. So if you want to be cross platform, you should write code like:
#ifndef NDEBUG
// debug code here
#endif


Also, if NDEBUG isn't defined, then the macro assert is defined (if you include assert.h that is). But I am unsure if VC++/VS.NET defines NDEBUG in release builds or not.

--
There's a new game we like to play you see. A game with added reality. You treat me like a dog, get me down on my knees.

We call it master and servant.

GeneralRe: A question about the precompiled directive ASSERT Pin
George223-Jan-03 15:55
George223-Jan-03 15:55 
Generalcopy user I/O (eg creating,modifing,reading a file or folder)to a fixed hidden directory Pin
rohit.dhamija21-Jan-03 22:17
rohit.dhamija21-Jan-03 22:17 
GeneralMouse shortcuts Pin
Rage21-Jan-03 21:59
professionalRage21-Jan-03 21:59 
GeneralRe: Mouse shortcuts Pin
HENDRIK R21-Jan-03 22:14
HENDRIK R21-Jan-03 22:14 
GeneralRe: Mouse shortcuts Pin
Rage21-Jan-03 22:35
professionalRage21-Jan-03 22:35 
GeneralRe: Mouse shortcuts Pin
HENDRIK R21-Jan-03 22:49
HENDRIK R21-Jan-03 22:49 
GeneralIAS Pin
Alireza_dcg21-Jan-03 21:39
sussAlireza_dcg21-Jan-03 21:39 
QuestionWhat is the function of __FILE__ and __LINE__? Pin
George221-Jan-03 21:22
George221-Jan-03 21:22 
AnswerRe: What is the function of __FILE__ and __LINE__? Pin
Rage21-Jan-03 21:33
professionalRage21-Jan-03 21:33 
GeneralRe: What is the function of __FILE__ and __LINE__? Pin
Peter Hancock21-Jan-03 21:48
Peter Hancock21-Jan-03 21:48 
GeneralRe: What is the function of __FILE__ and __LINE__? Pin
Rage21-Jan-03 21:56
professionalRage21-Jan-03 21:56 
GeneralRe: What is the function of __FILE__ and __LINE__? Pin
George221-Jan-03 22:07
George221-Jan-03 22:07 
Generalping broadcast problem.. Pin
supirsupian21-Jan-03 21:10
supirsupian21-Jan-03 21:10 
GeneralPreTranslateMessage does not handle F1 and F12 Pin
justin22321-Jan-03 20:58
justin22321-Jan-03 20:58 
GeneralRe: PreTranslateMessage does not handle F1 and F12 Pin
Joaquín M López Muñoz21-Jan-03 21:10
Joaquín M López Muñoz21-Jan-03 21:10 
GeneralRe: PreTranslateMessage does not handle F1 and F12 Pin
justin22321-Jan-03 21:20
justin22321-Jan-03 21:20 
GeneralRe: PreTranslateMessage does not handle F1 and F12 Pin
Joan M22-Jan-03 6:46
professionalJoan M22-Jan-03 6:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.