Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/24/06 13:51
Modified:
  04/24/06 13:52

Read: times


 
#114886 - "conditional source"
cross posted at Keil

I have a module, which is used in four different products, that has way too many #ifdef's to be readable in debug and, at the same time, there is so much common code that making four separate modules is not the right approach. I have used all the "usual tricks" (separating what is only for one to a separate libray module, making some conditionals inside a macro etc)

What I wonder is: is there some software that can "cut type x" out of the source before compilation. Since I am using a .bat operation (no IDE), a free standing program would be fine. This, probably, would require replacing the #ifdef with somrthing such a program "understood" no problem.

Erik

just so you know: I can NOT use the IDE due to its inability to make lots of slightly different builds in one go from the same source.

List of 5 messages in thread
TopicAuthorDate
"conditional source"            01/01/70 00:00      
   CodeWright            01/01/70 00:00      
      will have to read up on that            01/01/70 00:00      
   run C preprocessor over it?            01/01/70 00:00      
      Perl Scripts ?            01/01/70 00:00      

Back to Subject List