소스 파일을 분석하는데, #ifdef, #ifndef 문이 너무 많아서 코드의 흐름을 따라가는데 지장이 많습니다.
그래서 저 매크로만 전처리한 결과를 구해내고 싶은데, cpp 를 돌리면, #include, 코멘트, #define 까지 다 처리한 결과를 내어주네요.
전처리기의 기능 중 일부만을 선택적으로 적용하는 방법을 아시는 분 알려주시면 감사하겠습니다.
(man 페이지는 살펴봤구요... 검색도 해봤습니다.)
http://www.eskimo.com/~scs/C-faq/q10.18.html
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html Korean Ver: http://cinsk.github.io/cfaqs/
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
http://www.eskimo.com/~scs/C-faq/q10.18.
http://www.eskimo.com/~scs/C-faq/q10.18.html
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://cinsk.github.io/cfaqs/
댓글 달기