I have large .c and .h files from which i have to select only preprocessors directives satisfying these conditions as below
#if(VALUE==5) ||(VALUE==6)
Rest of preprocessors directives should remain untouched.I have already looked into unifdef and sunifdef they will allow me to identify #if and #ifdef but i want to chose selectively not all #if, #ifdefs. Is there a utility thats allows me to give, e.g., VALUE==5 and chose only those?
Basically I need preprocessor directives selection based on my input value.