Comment on Tutorial - assert() example program in C++ By Charles



Comment Added by : Ryba

Comment Added at : 2010-05-19 15:45:48

Comment on Tutorial : assert() example program in C++ By Charles
it should be:
/* --------------- */
#define ASSERT(x)
if (x) {} \
else { \
//.. bla bla bla
debugBreak();
}
/* ---------------- */

Gues what happen if u use ur version like that:
if (x < 3)
ASSERT(x >= 0);
else
doSomeStuff();

;]


View Tutorial



Related Tutorials

Java program to get location meta data from an image

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Archived Comments

1. when i trying to build the above program it is giv
View Tutorial          By: bhagyalaxmi at 2008-10-10 23:45:45

2. Thanks for the help, however I am having some diff
View Tutorial          By: Andrew at 2008-09-30 14:51:14

3. pls tell me how to insert data in database .
View Tutorial          By: sankar at 2009-10-22 05:37:45

4. /*Web.xml File */

&lt;?xml vers

View Tutorial          By: Pavan Barot at 2010-07-11 23:32:35

5. Would be great if you also showed how to manipulat
View Tutorial          By: Sparx at 2010-01-05 13:51:56

6. Very good post.^^
View Tutorial          By: LAM at 2009-10-25 04:18:38

7. simple way friends:
public class palindrome

View Tutorial          By: Manoj at 2013-01-07 02:18:00

8. help me for this nested for loops
2 3 4 5
View Tutorial          By: nadzirah at 2012-10-12 15:33:20

9. There are 11 types of people.
Those who kno

View Tutorial          By: alphachap at 2011-03-07 10:53:44

10. pls send me the brief description about jdbc conne
View Tutorial          By: vikas at 2011-08-09 07:07:53