c++ - VC++ 2010 Express | Compiler removes some code from my project -
i'm using vc++ 2010 express.
i have code that:
if(strlen("aa") == strlen("bb")) messagebox("aa == bb"); else messagebox("aa != bb");
in built executable there bytes "aa == bb", there no "aa != bb".
means compiler optimizes predictable code.
there way disable this?
cheers, kamil.
add
#pragma function(strlen)
to program @ beginning.
Comments
Post a Comment