J
John Black
Hi,
I am using assert() to hide some debug dump out like this,
int dump(){
... some printf...
return 0;
}
then in my main code, I do this,
assert(dump() == 0);
I wished using this way to avoid that dump() is called in optimized
mode compile, but it seems it does not work! I still see the dump out in
optimized version.
Any idea?
I am using assert() to hide some debug dump out like this,
int dump(){
... some printf...
return 0;
}
then in my main code, I do this,
assert(dump() == 0);
I wished using this way to avoid that dump() is called in optimized
mode compile, but it seems it does not work! I still see the dump out in
optimized version.
Any idea?