Not exactly. You'll also need to include code, which checks if the symbol API_VER is defined before checking it's value. This will make the code bloated. One way to do it is to define a template which takes the symbol in the form of a string, but that would look very ugly.