I know absolutely nothing about C, but it sounds like you are looking for something like unifdef
. Note that it hasn’t been updated since 2000, but there is a successor called “Son of unifdef” (sunifdef).
More Related Contents:
- How to convert an enum type variable to a string?
- What is the worst real-world macros/pre-processor abuse you’ve ever come across?
- Why include guards?
- Testing pointers for validity (C/C++)
- Why don’t I get a segmentation fault when I write beyond the end of an array?
- cudaMemcpy segmentation fault
- Same random numbers every loop iteration
- How do I print the elements of a C++ vector in GDB?
- Getting the actual length of a UTF-8 encoded std::string?
- std::string::c_str() and temporaries
- How to use clock() in C++
- Namespaces in C
- declare template friend function of template class
- Deleting specific line from file
- “Undefined symbols” linker error with simple template class
- Impact of cubic and catmull splines on image
- Spirit-Qi: How can I write a nonterminal parser?
- What’s the fastest way to pack 32 0/1 values into the bits of a single 32-bit variable?
- Which types on a 64-bit computer are naturally atomic in gnu C and gnu C++? — meaning they have atomic reads, and atomic writes
- Refreshing the auto complete (IntelliSense) database in Visual Studio
- Why can I access private variables in the copy constructor?
- What’s the difference between opening a file with ios::binary or ios::out or both?
- How to convert a command-line argument to int?
- Does std::mutex create a fence?
- Should you overload swap in the std namespace?
- Why is a default constructor required when storing in a map?
- What’s the difference between span and array_view in the gsl library?
- Where can I get windows.h for Mac?
- Is it possible to write an agile Pimpl in c++?
- C++ forwarding reference and r-value reference