Symbian中的GLDEF_C, LOCAL_C, GLREF_C 的含义----ZT
来源:互联网 发布:3d全景展示源码 编辑:程序博客网 时间:2024/04/28 21:37
These are defined in e32def.h as follows:
#define GLREF_D extern
#define GLDEF_D
#define LOCAL_D static
#define GLREF_C extern
#define GLDEF_C
#define LOCAL_C static
The _C and _D suffixes are an EPOC convention. _D indicates a declaration (Data), _C indicates a definition (Code).
As static is an overloaded word in C++ (i.e. it's used to mean more than one thing), we use the more meaningful termsLOCAL_C and LOCAL_D instead.
GLREF_C and GLREF_D, by contrast, are used to indicated GLobal REFerences, i.e. extern.
Finally GLDEF_C and GLDEF_D indicate GLobal DEFinitions. These terms don't have a formal definition but are used as markers for functions or varia
这些宏被定义在 e32def.h 头文件中,如下:
#define GLREF_D extern
#define GLDEF_D
#define LOCAL_D static
#define GLREF_C extern
#define GLDEF_C
#define LOCAL_C static
后缀 _D 和 _C 是 EPOC 的的一个约定,_D 指数据声明(declaration of Data),_C 指代码定义(definition of Code)。
LOCAL_C 和 LOCAL_D ,被 static 所取代。
GLREF_C 和 GLREF_D 被指定为全局引用(GLobal REFerence):extern 。
GLDEF_C 和 GLDEF_D 指定了一个全局定义(GLobal DEFination)。这两个宏没有给出一个固定的定义,但是它们被作为函数和变量的记号。
转自:http://www.applestar.net/index.php/faq/54-symbian/421-symbiangldefc-localc-glrefc-.html
- Symbian中的GLDEF_C, LOCAL_C, GLREF_C 的含义----ZT
- Symbian中的GLDEF_C, LOCAL_C, GLREF_C 的含义
- GLDEF_C, LOCAL_C, GLREF_C 的含义
- Symbian C++ 里的LOCAL_C/GLDEF_C含义....
- Symbian中的String和Descriptors(zt)
- Symbian中的String和Descriptors(zt)
- Symbian sign的流程文档(zt)
- Symbian学习笔记9 之 The difference between LOCAL_C and LOCAL_D
- symbian 资源文件含义
- Symbian 控件编程小结-ZT
- 先写个symbian的吧 symbian中的.pkg文件详解
- JavaScript中的$符号的含义
- xml中的关键字的含义
- JS中的prototype的含义
- shell 中的特殊符号的含义
- JFrame中的setDfaultCloseOperation的含义
- android中的layout_weight的含义
- js中的Return的含义
- 一个老程序员的心里话
- DropDownList数据绑定及添加默认项的问题
- Telnet 获取网页
- SQL Server 2005中的分区表(六):将已分区表转换成普通表
- 合格站长必须知道的5点常规知识
- Symbian中的GLDEF_C, LOCAL_C, GLREF_C 的含义----ZT
- 多参函数的使用举例 以及说明!
- WebBrowser控件总是最大化显示页面
- Asterisk Summary - 3
- ThreadLocal
- 今天 经理 面谈,腿老抖。。。
- Oracle EBS: 物料的属性设定
- c# 本机时区信息获取类
- 直观理解类和对象