码迷,mamicode.com
首页 >  
搜索关键字:ifdef    ( 750个结果
gcc源代码分析gen_push_operand ()函数和emit_move_insn ()函数
如何生成下面红色的3个指令? 和gen_push_operand ()函数和emit_move_insn ()函数有关,他们都在expand_call()函数中被调用。 具体位置:       rtx addr; #ifdef PUSH_ROUNDING       if (args_addr == 0)     addr = gen_push_operand ();...
分类:其他好文   时间:2015-01-05 20:33:41    阅读次数:248
dbgprint_Mine 调试输出
void DbgPrintf_Mine(char*pszFormat,...){#ifdef _DEBUG char szbufFormat[0x1000]; char szBufFormat_Game[0x1008]="Game:"; va_list argList; va...
分类:数据库   时间:2015-01-04 13:25:39    阅读次数:339
动态链接库DLL
静态链接库的使用方法: 示例代码:http://pan.baidu.com/s/1i303qZV 1.创建工程 2.向工程中添加.cpp 和.h 3.头文件代码 #ifdef MyDLL_API #else #define MyDLL_API _declspec(dllexport) #endif ...
分类:其他好文   时间:2015-01-02 23:38:18    阅读次数:171
verilog中include的用法
Verilog 的`include和C语言的include用法是一样一样的,要说区别可能就在于那个点吧。include一般就是包含一个文件,对于Verilog这个文件里的内容无非是一些参数定义,所以这里再提几个关键字:`ifdef `define `endif(他们都带个点,呵呵)。他们联合起来使用...
分类:其他好文   时间:2015-01-01 11:15:12    阅读次数:216
#ifdef预编译相关用法
#ifdef预编译相关用法主要有:(1)#ifdef XXX executing the corresponding xxx code #endif(2)#ifdef XXX executing the corresponding xxx code #else executing...
分类:其他好文   时间:2014-12-31 20:02:38    阅读次数:145
BestCoder Round #24 b
#include?<iostream> #include?<fstream> #include?<vector> #include?<cstdio> #include?<string> #include?<cstring> #include?<cstdlib> #include?<algorithm> using?namespace?std; #ifdef?DEB...
分类:其他好文   时间:2014-12-30 19:22:18    阅读次数:203
stm8s103串口
#include "uart.h"#define UART2#define uart_115200 1void Init_UART2(void){#ifdef UART2 UART1_CR1=0x00; UART1_CR2=0x00; UART1_CR3=0x00;#ifdef uart_9600 ...
分类:其他好文   时间:2014-12-30 18:28:04    阅读次数:227
iOS 本地通知注册的小问题
iOS8有了新方法,用新方法后,用7.0版本运行会奔溃。只要加一句判断就ok:#ifdef __IPHONE_8_0 // 在 iOS 8 下注册苹果推送,申请推送权限。 UIUserNotificationSettings *settings = [UIUserNotifica...
分类:移动开发   时间:2014-12-30 16:33:51    阅读次数:189
《算法竞赛入门经典》第二章 2.3
程序2-7 略去程序2-8 1 #define LOCAL 2 #include 3 #define INF 100000000 4 int main() 5 { 6 #ifdef LOCAL 7 freopen("data.in","r",stdin); 8 freope...
分类:编程语言   时间:2014-12-28 14:05:16    阅读次数:184
C++中的extern "C"
比如说你用C 开发了一个DLL 库,为了能够让C ++语言也能够调用你的DLL 输出(Export) 的函数,你需要用extern "C" 来强制编译器不要修改你的函数名。通常,在C 语言的头文件中经常可以看到类似下面这种形式的代码:C代码 #ifdef__cplusplusextern"C"{#e...
分类:编程语言   时间:2014-12-25 20:17:40    阅读次数:277
750条   上一页 1 ... 57 58 59 60 61 ... 75 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!