Smart ifdef is a sublimetext 3 plugin for highlight #ifdef in C/C++ source
use package control
goto Preferences -> Package Settings -> smartifdef --> settings to set C/C++ macro for project. the not defined macro code would be highlighted. In command panel put smartifdef command, the current buffer would be applied.