What does “macro” mean in Objective-C?

前端 未结 4 1491
被撕碎了的回忆
被撕碎了的回忆 2021-02-02 17:35

I am new to iOS development and I just want to know the meaning of macro in Objective-C?

I have found that \"macro\" is used with #define but still do not get its meanin

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 17:55

    Wikipedia has the answer, under Macro.

    Definition:

    The term originated with macro-assemblers, where the idea is to make available to the programmer a sequence of computing instructions as a single program statement, making the programming task less tedious and less error-prone.

    Usage:

    Keyboard and mouse macros that are created using an application's built-in macro features are sometimes called application macros. They are created by carrying out the sequence once and letting the application record the actions. An underlying macro programming language, most commonly a Scripting language, with direct access to the features of the application may also exist.

提交回复
热议问题