[RESOLVED]return(*var=0,NULL);
I am trying to compile code on MinGW for Mac and now I notice the code has a construct I've never seen, which compiled on VC++ 6.0 and VC++ Express.
SomeStruct* CMyClass::MyMethod(const char *symbol,const int period,const time_t lasttime,int *count)
{
if(Something==NULL) return(*count=0,NULL);
return Something(m_somevar,symbol,period,lasttime,count);
}
count is not a member of SomeStruct, so I assume it is just setting the value count points to equal to 0, then returning NULL.
So does this do the same thing:
if(Something==NULL) {
*count=0;
return(NULL);
}
return Something(m_somevar,symbol,period,lasttime,count);
Or is there a switch I can pass to MinGW to let it accept the original return construct?
[RESOLVED] Re: return(*var=0,NULL);