C: preprocess only ifdefs
hi
i've got a big ugly c code, full of
#ifdef WIN32
#elif LINUX
#else
#endif
i would like to process the code to apply only #ifdefs, to extract the LINUX version fo the code.
i tried cpp but it adds more code from the #include files and replaces constants with their values, losing their meanings.
there's some tool for that? or something with M4?
thanks in advance
|