Tag: Grammar

A trick using #if pre-processor

Posted by – February 13, 2006

I hit a small C++ grammar trick which I have never met before in my project. The problem is how to deal with the situation that two defined identifiers have the same compilation behavior. A simple solution to this is to write two same block code like this:

More