SETUP:
Imagine that I have a pretty good size program, and #defines and various means of including / excluding various pieces of code are used.
those. Suppose I have code like this
example_file.c:
include <definition_file> #ifdef THIS do something really cool here #ifdef THAT do something even cooler #endif #endif
definition_file.c:
#define THAT TRUE #define THIS FALSE
Now I do not know that not a single operator will be included or used unless I look in the definition. The above example, but suppose you say 50 ifdefs, and they are nested in different ways, keeping track that each of the 50 values ββis a pain in the butt.
Question:
Is there a program / environment that, for example, is gray or highlights the entire code snippet, indicating that based on your "control file" they will not be included or will be included. (some visual or other indication)
Note: If someone can improve the name or question, please, by all means, I'm really at a loss for what to call it. (or suggest the best tags too)
source share