码迷,mamicode.com
首页 >  
搜索关键字:macro    ( 439个结果
The difference between macro and function(from c and pointer )
macro is typeless and execute faster than funtion ,becaus of the overhead of calling and returnning of function,but macro will increase the size of pr ...
分类:系统相关   时间:2016-05-02 13:05:45    阅读次数:244
Linux Kernel: the " do { ... } while(0)" magic
在读Linux源码的时候看到一堆这种macro: 一直想不明白,为什么不直接用 或者: 搜了一下才明白: http://stackoverflow.com/questions/9495962/why-use-do-while-0-in-macro-definition http://stackove ...
分类:系统相关   时间:2016-05-02 12:57:36    阅读次数:170
函数模板与模板函数及模板类与模板的特化
函数模板( Function templates) 模板(Templates)使得我们可以生成通用的函数,这些函数能够接受任意数据类型的参数,可返回任意类型的值,而不需要对所有可能的数据类型进行函数重载。这在一定程度上实现了宏(macro)的作用。它们的原型定义可以是下面两种中的任何一个: template function_declaration; template function_declaration; 上面两种原...
分类:其他好文   时间:2016-04-29 18:16:06    阅读次数:298
函数模板与模板函数及模板类与模板的特化
函数模板( Function templates) 模板(Templates)使得我们可以生成通用的函数,这些函数能够接受任意数据类型的参数,可返回任意类型的值,而不需要对所有可能的数据类型进行函数重载。这在一定程度上实现了宏(macro)的作用。它们的原型定义可以是下面两种中的任何一个: template function_declaration; template function_declaration; 上面两种原...
分类:其他好文   时间:2016-04-25 06:51:54    阅读次数:252
Velocity教程
一、基本语法 1、"#"用来标识Velocity的脚本语句,包括#set、#if 、#else、#end、#foreach、#end、#iinclude、#parse、#macro等; 如: #if($info.imgs) #else #end 2、"$"用来标识一个对象(或理解为变量);如 如:$i、$msg、$TagUtil.optio...
分类:其他好文   时间:2016-04-21 11:48:20    阅读次数:160
预处理器指令
1.macro definitions (#define, #undef)宏定义 2.Conditional inclusions (#ifdef, #ifndef, #if, #endif, #else and #elif) 3.Line control (#line) 4.Error direc ...
分类:其他好文   时间:2016-04-14 14:16:46    阅读次数:149
OS X平台上MySQL环境搭建
参考资料: http://www.cnblogs.com/macro-cheng/archive/2011/10/25/mysql-001.html http://blog.csdn.net/justaipanda/article/details/50531359 在OS X平台上安装MySQL最简 ...
分类:数据库   时间:2016-04-14 13:57:17    阅读次数:174
Velocity 语法(转)
一、基本语法 1、"#"用来标识Velocity的脚本语句,包括#set、#if 、#else、#end、#foreach、#end、#iinclude、#parse、#macro等; 如: #if($info.imgs) <img src="$info.imgs" border=0> #else ...
分类:其他好文   时间:2016-04-11 17:00:29    阅读次数:153
C++获取数组长度!
一、静态数组。 比如 int int_ary[5] ,静态数组在编译的时候就知道了数组长度,这对编译器来说挺好实现的。 用得最多的大概就是sizeof了吧: 1 #define countof_macro(x) (sizeof((x)) / sizeof(x)[0]) 1 #define count ...
分类:编程语言   时间:2016-04-08 06:36:19    阅读次数:226
javascript的概述
Nombas 和 ScriptEase 大概在 1992 年,一家称作 Nombas 的公司开发了一种叫做 C 减减(C-minus-minus,简称 Cmm)的嵌入式脚本语言。Cmm 背后的理念很简单:一个足够强大可以替代宏操作(macro)的脚本语言,同时保持与 C (和 C ++)足够的相似性 ...
分类:编程语言   时间:2016-04-05 10:44:56    阅读次数:252
439条   上一页 1 ... 26 27 28 29 30 ... 44 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!