Skip to content

XQ's Blog

Tag: Grammar

Posted on February 13, 2006

A trick using #if pre-processor

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:

Continue reading “A trick using #if pre-processor”

Proudly powered by WordPress