• Advertisement
Sign in to follow this  

Can someone explain this syntax please

This topic is 4680 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

#define delete (m_setOwner(__FILE__,__LINE__,__FUNCTION__),false) ? m_setOwner("",0,"") : delete I know what the ? : part is but Im confused by the ( , ) part. Can someone explain it please?

Share this post


Link to post
Share on other sites
Advertisement
The comma operator? It evaluates the left side, then returns the result of evaluating the right side.

Share this post


Link to post
Share on other sites
I thought that the ',' in this case was separating arguments.

EDIT: I missed the ', false' part. Forget what I said.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement