| 网站首页 | 文学 | 小说 | 动漫 | 论文 | 军事 | 科技 | 图片 | 教育 | 哲学 | 历史 | 英语 | 
首页>>计算机 >>程序编程 用户登录 新用户注册
Macro Definitions of Functions

Macro Definitions of Functions

If we describe something as a function in this manual, it may have a macro definition as well. This normally has no effect on how your program runs--the macro definition does the same thing as the function would. In particular, macro equivalents for library functions evaluate arguments exactly once, in the same way that a function call would. The main reason for these macro definitions is that sometimes they can produce an inline expansion that is considerably faster than an actual function call.

Taking the address of a library function works even if it is also defined as a macro. This is because, in this context, the name of the function isn't followed by the left parenthesis that is syntactically necessary to recognize a macro call.

You might occasionally want to avoid using the macro definition of a function--perhaps to make your program easier to debug. There are two ways you can do this:

You can avoid a macro definition in a specific use by en
< 1 >   < 2

在百度搜索:Macro Definitions of Functions
推 荐
相 关 文 章
  • Linux ioctl() Primer
  • Building Shared Libraries
  • Feature Test Macros
  • Reserved Names
  • 用户数据报发送
  • 完整的读写函数
  • 服务器和客户机的信息函数
  • 第六篇:从程序员到系统分析员之一
  • 第七篇:从程序员到系统分析员之二
  • 第五篇:达到目标必经的路 之三