码迷,mamicode.com
首页 >  
搜索关键字:ifdef    ( 750个结果
C Coding Standard
1 通用 Rule 1 编译的Warnings不能被忽略掉 Rule 2 在已有Code或者三方的code基础上的修改,允许使用原来的coding standard Rule 3 如果允许C和C++都访问的相同的C的header 文件, extern C 必须在header文件里 #ifdef __cplusplus extern "C" { #endif /* body...
分类:其他好文   时间:2015-03-20 09:17:35    阅读次数:115
大整数算法[01] 大整数的表示和相关定义
★ 相关的数据类型定义 在干正事之前,先定义好各种数据类型还是很有必要的,避免在以后的编码中引起混乱。 uintX X位无符号整形,如uint32表示32位无符号整形 intX X位有符号整形,如int32表示32位有符号整形 基本数据类型定义: #ifdef _MSC_VER t...
分类:编程语言   时间:2015-03-20 01:15:53    阅读次数:247
【转】__cplusplus的含义
有点代码中会看到以下形式的代码: #ifdef __cplusplus extern "C" {#endif#ifdef __cplusplus}#endif 这些代码是什么意思呢?首先,__cplusplus是cpp中的自定义宏,那么定义了这个宏的话表示这是一段cpp的代码,也就是说,上...
分类:其他好文   时间:2015-03-19 12:59:03    阅读次数:125
IntraWeb在异步事件中返回javascript 脚本
unit Unit1;interface{$DEFINE CODESITE}uses {$IFDEF CODESITE}CodeSiteLogging, {$ENDIF} Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes, ....
分类:编程语言   时间:2015-03-19 12:56:02    阅读次数:311
快速排序
代码:#include #include int T,t,N,i;#define LOG 1//调试日志void Log(int* data,int flag,int i,int j){#ifdef LOG if(flag == 1) { for(int k=0;k rig...
分类:编程语言   时间:2015-03-18 17:41:13    阅读次数:172
c/c++重定向输入输出
#define Local#include #include //#include using namespace std;int main(){#ifdef Local freopen("datain.txt","r",stdin); freopen("dataout.txt","r",std.....
分类:编程语言   时间:2015-03-17 15:37:26    阅读次数:147
iOS 自定义日志输出
在做iOS开发过程中,我们经常需要输出日志来查看某些数据是否打印出来,或者查看查个类是否被调用了。系统默认的是NSLog(@"xxxx %d",1) ,但如果该APP要发布到商店,就要把这些日志全部都注释掉,要不是的话,要非常占内存。当前的做法是,在.pch 中,定义一个宏:#ifdef DEBUG...
分类:移动开发   时间:2015-03-16 00:53:43    阅读次数:232
QThead实现模拟VC线程函数
// 头文件#ifndef QTHREADBASE_H#define QTHREADBASE_H#include #include #include #include #include #ifdef _MAC#define CALLBACK PASCAL#define WINAPI ...
分类:编程语言   时间:2015-03-15 15:17:50    阅读次数:190
JNI 中打印变量
1.封装个log.h #ifndef __MULTI_TRACE_H__ #define __MULTI_TRACE_H__ #ifdef ANDROID_NDK_BUILD    #define LOG_TAG "NATIVE NDK INFO"    #include   // only use in NDK    #define LOGE(...) ((...
分类:其他好文   时间:2015-03-13 18:49:41    阅读次数:164
Linux内核源代码情景分析-异常
一、异常初始化    中断向量表的IDT的初始化void __init trap_init(void) { #ifdef CONFIG_EISA if (isa_readl(0x0FFFD9) == 'E'+('I'<<8)+('S'<<16)+('A'<<24)) EISA_bus = 1; #endif set_trap_gate(0,÷_error); set_trap_gate...
分类:系统相关   时间:2015-03-13 10:57:26    阅读次数:300
750条   上一页 1 ... 51 52 53 54 55 ... 75 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!