一、 复杂模版中指令混合使用 二、 宏定义编写 解决方法:1、编写宏:数据text、长度length …后面参数可多个!2、调用宏:<@cut text=list. note length=20> <#macro cut text length append='...'> <#if text? le ...
分类:
其他好文 时间:
2016-06-17 15:32:55
阅读次数:
257
下面是在日志语句中很有用的非常常见的宏和表达式。C/C++/Objective-C中用于日志输出的预处理宏.Macro Format Specifier Description 1. __func__ %s 当前函数前面 2. __LINE__ %d 源码文件中的行号 3. __FILE__ %s ...
分类:
移动开发 时间:
2016-06-13 22:03:59
阅读次数:
295
例: 这个宏只记录了vim命令到寄存器a中,执行这个宏可以用命令: @a 也可以加上执行次数: 执行10次 当你执行过一次@a之后,你可以用 @@ 来重复执行@a 当你发现存在某个寄存器的命令宏是错误的,你除了可以重新写一遍命令宏之外,还有如下修改方式: 1、先用G(大写)到文件末尾,然后用o(小写 ...
分类:
系统相关 时间:
2016-06-09 17:12:29
阅读次数:
378
新建类中,若要自己定义槽函数,出现了CAN 官方指南如下: The Q_OBJECT macro must appear in the private section of a class definition that declares its own signals and slots or t ...
分类:
其他好文 时间:
2016-05-21 23:19:05
阅读次数:
946
the GENERATED_BODY() macro allows the class to build without having a constructor defined. If you need a constructor, you can change that macro to the ...
分类:
其他好文 时间:
2016-05-15 16:40:36
阅读次数:
1019
1.系统调用简易的伪代码 #systme call #asm pseudo code #系统调用处理过程的伪代码 .macro INTERRUPT_RETURN iret .endm .macro SAVE_ALL ... .endm .macro RESTORE_INT_REGS ... .end... ...
分类:
其他好文 时间:
2016-05-09 18:47:49
阅读次数:
140
本文记录对Cmockery的宏使用的示例进行测试、跟踪。 ...
分类:
系统相关 时间:
2016-05-07 14:54:27
阅读次数:
312
该函数实际是一个宏,它在include/linux/platform_device.h中定义如下:
[cpp] view
plain copy
/* module_platform_driver() - Helper macro for drivers that don't do
* anything special in module...
分类:
其他好文 时间:
2016-05-07 09:31:12
阅读次数:
295
1、error: macro names must be identifiers YourProject_prefix.pch 原因: 因为你弄脏了预处理器宏,在它处于<Multiple Values>的时候修改了它 解决方法: Configiration选择All Configirations,清 ...
分类:
其他好文 时间:
2016-05-05 17:18:08
阅读次数:
399
1、error: macro names must be identifiers YourProject_prefix.pch 原因: 因为你弄脏了预处理器宏,在它处于<Multiple Values>的时候修改了它 解决方法: Configiration选择All Configirations,清 ...
分类:
其他好文 时间:
2016-05-05 09:31:04
阅读次数:
140