4
neriald
6y

#define someError ( -1)

int func(params *param)
{
//some code
if(condition)
{
someError ;
}
}

Spent like half and hour on debugger thinking why the fuck does it skip my statement. My manager who was passing by saw me puzzled and asked if he could help, so we spent another 10 minutes without success(tho my manager is technical guy but he had an unlucky moment I guess). Eventually senior manager saw our wtf faces and asked what is going on, it took one question for me to light the bulb "someError is a macro right?"

I guess you can imagine my embarrassment at that moment..

PS: Forgot return keyword before the error code.

Comments
Add Comment