The `#ident' directive takes one argument, a string constant. On some
systems, that string constant is copied into a special segment of the
object file. On other systems, the directive is ignored. The `#sccs'
directive is a synonym for `#ident'.
These directives are not part of the C standard, but they are not
official GNU extensions either. What historical information we have
been able to find, suggests they originated with System V.
The "null directive" consists of a `#' followed by a newline, with
only whitespace (including comments) in between. A null directive is
understood as a preprocessing directive but has no effect on the
preprocessor output. The primary significance of the existence of the
null directive is that an input line consisting of just a `#' will
produce no output, rather than a line of output containing just a `#'.
Supposedly some old C programs contain such lines.
* -save-temps로 전처리된 파일을 살펴보시면
해당 라인이 전치리기를 거치면서 사라진 것을 확인할 수 있겠네요.
----------------------------------------------------------------------------------------
Don't Feed the Trolls!
----------------------------------------------------------------------------------------
info cpp (c pre-processor)의 결과를 보니 나오네요.
8 Other Directives
******************
The `#ident' directive takes one argument, a string constant. On some
systems, that string constant is copied into a special segment of the
object file. On other systems, the directive is ignored. The `#sccs'
directive is a synonym for `#ident'.
These directives are not part of the C standard, but they are not
official GNU extensions either. What historical information we have
been able to find, suggests they originated with System V.
The "null directive" consists of a `#' followed by a newline, with
only whitespace (including comments) in between. A null directive is
understood as a preprocessing directive but has no effect on the
preprocessor output. The primary significance of the existence of the
null directive is that an input line consisting of just a `#' will
produce no output, rather than a line of output containing just a `#'.
Supposedly some old C programs contain such lines.
* -save-temps로 전처리된 파일을 살펴보시면
해당 라인이 전치리기를 거치면서 사라진 것을 확인할 수 있겠네요.
----------------------------------------------------------------------------------------
Don't Feed the Trolls!
----------------------------------------------------------------------------------------
....
주석에 대해서 공부하시면 알수 있습니다.
주석은 아닌 듯 싶습니다. 그나저나 이것에 대해서는
주석은 아닌 듯 싶습니다.
그나저나 이것에 대해서는 처음 알았네요.
코드 상에 특이한 표시 정도 이외에는 쓸일이 없어보이네요.
내 블로그: http://unipro.tistory.com
댓글 달기