码迷,mamicode.com
首页 >  
搜索关键字:ifdef    ( 750个结果
linux开发缩写
1.CONFIG_OF在一些驱动中经常看到#ifdef CONFIG_OF,这里的OF是Open Firmware。Open Firmware. This was invented long time ago when Apple was producing laptops based on PowerPC CPUs. Openfirmware provides a good descriptio...
分类:系统相关   时间:2016-03-02 11:12:59    阅读次数:198
#pragma once 与 #ifdef 的区别
当一个项目比较大时,往往都是分文件,这时候有可能不小心把同一个头文件 include 多次,或者头文件嵌套包含:a.h 中包含 b.h :#include "b.h"b.h 中包含 a.h:#include "a.h"main.c 中使用其中头文件:#include "a.h" int main() { return 0; }编译上面的例子,会出现如下错误:为了避免同一个文件被includ...
分类:其他好文   时间:2016-03-01 13:02:15    阅读次数:164
通用的更新方法
function THlsImplBase.UpdateTableData(ATableName, AKeyField: AnsiString; var AData: Variant): Boolean; var LSql: string; I: Integer; {$IFDEF MSSQL} LP
分类:其他好文   时间:2016-02-28 22:46:03    阅读次数:195
erlang调试方法
第一种方式,加打印记录 %%-define(debug, ok). -ifdef(debug). -define(LOG(X), io:format("pid:~p , {~p,~p}: ~p~n", [self(), ?MODULE, ?LINE, X])). -else. -define(LOG
分类:其他好文   时间:2016-02-23 15:47:43    阅读次数:156
iOS全局头文件引用报一些系统库出错
#ifdef __OBJC__ #import "UIButton+Block.h" #endif // 加入这两句在中间引入头文件
分类:移动开发   时间:2016-02-22 19:07:19    阅读次数:156
WinCE 6 鼠标钩子(HOOK)
1 // MouseHook.h 2 3 #ifdef MOUSEHOOK_EXPORTS 4 #define MOUSEHOOK_API __declspec(dllexport) 5 #else 6 #define MOUSEHOOK_API __declspec(dllimport) 7 #e
分类:Windows程序   时间:2016-02-22 11:45:37    阅读次数:271
System Verilog Assertion for debug
System Verilog Assertion是非常好的验证方法,通过SVA可以显式描述需要验证的电路逻辑,并且仿真工具可以在仿真的过程中自动输出波形出错信息,从而替代传统的看波形调试方法,提高前端设计验证效率。 RTL代码结构 `ifdef SVA module m_sva(input wire
分类:其他好文   时间:2016-02-18 19:35:32    阅读次数:867
不包含SDK头文件, 补全API定义
[cpp] view plain copy /// @file main.cpp /// @brief 不包含SDK头文件, 补全API定义 #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define DECLARE_HANDLE
分类:Windows程序   时间:2016-02-12 22:05:15    阅读次数:332
Cocos2d 使用控制台打印的方法
1.打开当前项目的win32解决方案。 2.在解决方案管理器的win32文件夹下打开main.cpp 3.增加以下代码: #define USE_WIN32_CONSOLE //以下加到入口函数 #ifdef USE_WIN32_CONSOLE AllocConsole(); freopen("CO
分类:其他好文   时间:2016-02-01 14:04:15    阅读次数:112
编程中的offsetof
linux和windows平台都已经定义了offsetof函数,用于取struct类型中某个变量的偏移量 在stddef.h头文件中,该宏的完整说明如下: #ifdef __cplusplus #ifdef _WIN64 #define offsetof(s,m) (size_t)( (ptrdif
分类:其他好文   时间:2016-01-30 22:49:44    阅读次数:173
750条   上一页 1 ... 31 32 33 34 35 ... 75 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!