码迷,mamicode.com
首页 >  
搜索关键字:macro    ( 439个结果
oc nil Nil
Macro nil nil Defines the id of a null instance. Macro Nil Defines the id of null class. Defines the id of a null instance. Macro Nil Defines the id o ...
分类:其他好文   时间:2017-02-22 17:51:10    阅读次数:117
Adopting Modern Objective-C
Change id to instancetype in appropriate places Change enum to NS_ENUM or NS_OPTIONS The NS_ENUM macro helps define both the name and type of the enum ...
分类:其他好文   时间:2017-02-22 13:08:32    阅读次数:128
C语言不定参数
最近,遇到一个c语言的不定参数问题。其实,对于c语言的不定参数问题,只需要三个函数就可以搞定了。这三个函数的头文件是<stdarg.h>,其实下面的三个函数都是一个宏定义(macro)。 这三个函数是: void va_start(va_list ap, last); type va_arg(va_ ...
分类:编程语言   时间:2017-02-15 16:38:36    阅读次数:257
C语言宏定义##连接符和#符的使用(MFC就是靠##自动把消息和消息函数对应起来了,借助宏来减少switch case代码的编写量)
C语言中如何使用宏C(和C++)中的宏(Macro)属于编译器预处理的范畴,属于编译期概念(而非运行期概念)。下面对常遇到的宏的使用问题做了简单总结。 关于#和## 在C语言的宏中,#的功能是将其后面的宏参数进行字符串化操作(Stringfication),简单说就是在对它所引用的宏变量 通过替换后 ...
分类:编程语言   时间:2017-01-27 00:14:48    阅读次数:281
PYX 相关的扩展
.py Python Script .pym Python Macro File .pyc Python Bytecode .pyd Python Dynamic Module .pyo Python Optimized Code .tcl TCL Script .pxd Pyrex Definit ...
分类:其他好文   时间:2017-01-20 10:04:16    阅读次数:186
宏定义的黑魔法 - 宏菜鸟起飞手册
转载:https://onevcat.com/2014/01/black-magic-in-macro/ 宏定义在C系开发中可以说占有举足轻重的作用。底层框架自不必说,为了编译优化和方便,以及跨平台能力,宏被大量使用,可以说底层开发离开define将寸步难行。而在更高层级进行开发时,我们会将更多的重 ...
分类:其他好文   时间:2017-01-04 00:10:05    阅读次数:393
c语言中三个点的解释 : variadic
3.6 Variadic Macros A macro can be declared to accept a variable number of arguments much as a function can. The syntax for defining the macro is simi ...
分类:编程语言   时间:2016-12-30 17:25:52    阅读次数:239
What is “:-!!” in C code?
stackoverflow上看到的这个问题,觉得挺有趣,顺手记下来。 楼主提问: I bumped into this strange macro code in /usr/include/linux/kernel.h: You should read the expression like thi ...
分类:其他好文   时间:2016-12-21 20:26:33    阅读次数:163
C++ ## ... 实用
关于...的使用...在C宏中称为Variadic Macro,也就是变参宏。比如:#define myprintf(templt,...)fprintf(stderr,templt,__VA_ARGS__)// 或者#define myprintf(templt,args...) fprintf( ...
分类:编程语言   时间:2016-12-14 21:46:13    阅读次数:236
(转载)虚幻引擎3--9掌握虚幻技术UnrealScript 预处理器
第九章 – UNREALSCRIPT预处理器 9.1概述 9.2 MACRO(宏)的基础知识 指南 9.1 –您的第一个宏 9.3具有参数的宏 指南 9.2 – MACRO参数 9.4内置宏 DEFINE IF/ELSE/ENDIF 实例: IF/ELSE/ENDIF的应用 INCLUDE ISDE ...
分类:其他好文   时间:2016-11-26 18:06:14    阅读次数:258
439条   上一页 1 ... 22 23 24 25 26 ... 44 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!