Rules of markers usage
Posted: Sat Dec 28, 2013 11:45 am
I want to protect an entire C/C++ function with a single EP_Marker("reg_crypt_begin1") and EP_Marker("reg_crypt_end1").
However, I read in the docs:
Such as:
Of course the logic can be much more complex.
Splitting it up would be messy and cumbersome. Why can't markers handle "return"?
Will my program crash if I do a "return 0" inside a marked section?
However, I read in the docs:
I have a problem with this rule. My function is large. It has many return points.Rules of markers usage
for C and C++ users: the return; keyword can't be placed inside the marker.
Such as:
Code: Select all
if(!condition1) {
return 0;
}
else if(!condition2) {
return 0;
}
etc...
Splitting it up would be messy and cumbersome. Why can't markers handle "return"?
Will my program crash if I do a "return 0" inside a marked section?