zoukankan      html  css  js  c++  java
  • #pragma 是什么

    .

    摘自:《Beginning.iOS.5.Development.Exploring.the.iOS.SDK》

    1 #pragma mark -
    2 #pragma mark Picker Data Source Methods
    3 Any line of code that begins with #pragma is technically a compiler directive. More specifically, a #pragma marks a pragmatic, or compiler-specific, directive that won’t necessarily work with other compilers or in other environments. If the compiler doesn’t recognize the directive, it ignores it, though it may generate a warning. In this case, the  #pragma directives are actually directives to the IDE, not the compiler, and they tell Xcode’s editor to put a break in the popup menu of methods and functions at the top of the editor pane. The first one puts the break in the menu. The second creates a text entry containing whatever the rest of the line holds, which you can use as a sort of descriptive header for groups of methods in your source code.
    4 Some of your classes, especially some of your contro ller classes, are likely to get rather long, and the methods and functions popup menu makes navigating around your code much easier. Putting in #pragma directives and logically organizing your code will make that popup more efficient to use.

    .

  • 相关阅读:
    关于技术开发部员工培训文稿
    关于CLR、CIL、CTS、CLS、CLI、BCL和FCL
    MSIL(IL)百科
    汇编百科
    exe文件百科
    解释一下.net平台的语言无关性和语言继承性
    关于视频流媒体服务器的学习记录
    Ubuntu18.04的下载与安装(全过程纪录)
    记主板的南桥芯片和北桥芯片作用及区别(“干南桥”)
    我的Java资料小栈-START
  • 原文地址:https://www.cnblogs.com/submarinex/p/2613963.html
Copyright © 2011-2022 走看看