hsunny study blog

1.4 Function Macros 본문

book/The Practice of Programming

1.4 Function Macros

헤써니 2015. 12. 23. 23:56

There is a tendency among older C programmers to write macros instead of functions
for very short computations that will be executed frequently;

Avoid function macros.

In C++, inline functions render function macros unnecessary;
in Java, there are no macros.

Parenthesize the macro body and arguments.

 

WORD

Parenthesize 괄호 안에 넣다

sanction 인가하다, 승인하다

irrelevant 무관한

outweigh ~보다 더 크다

subtle 미묘한

discard 버리다

 

설명잘 된 블로그

http://blog.naver.com/choihn0303/50085256220

'book > The Practice of Programming' 카테고리의 다른 글

1.6 Comment  (0) 2015.12.28
1.5 Magic Number  (0) 2015.12.24
1.3 Consistency and Idioms  (0) 2015.12.22
1.2 Expressions and Statements  (0) 2015.12.21
1.1 Names  (0) 2015.12.21