mycoboco / beluga

a standard C compiler (with an integrated preprocessor)
http://code.woong.org/beluga
Other
65 stars 8 forks source link

support -dM #127

Closed mycoboco closed 6 years ago

mycoboco commented 6 years ago

Instead of the normal output, generate a list of ‘#define’ directives for all the macros defined during the execution of the preprocessor, including predefined macros. This gives you a way of finding out what is predefined in your version of the preprocessor. Assuming you have no file ‘foo.h’, the command

touch foo.h; cpp -dM foo.h

shows all the predefined macros.

mycoboco commented 6 years ago

Need to handle: