preprocessor指令由RIM编译器支持 [英] Preprocessor directives supported by the RIM compiler

查看:158
本文介绍了preprocessor指令由RIM编译器支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是不是真的明确记载,但浅搜索显示,RIM的 RAPC 编译器支持preprocessor语句(有一些项目文件修改)。

This isn't really clearly documented, but a shallow search reveals that RIM's RAPC compiler does support preprocessor statements (with some project file modification).

我们一直在使用简单的 #IFDEF 的#else #ENDIF 现在相当一段时间的指令,配套平台4.1 4.7通过一个code群是没有他们几乎是不可能的,但我最近开始想知道是否有其他支持的指令,这是不太有据可查;到C的 #elif指令例如,甚至是最基本的等效指令类似的东西?

We've been using the simple #ifdef, #else, and #endif directives for quite some time now, as supporting platforms 4.1 through 4.7 with one code base is nearly impossible without them, but I began wondering recently if there are other supported directives which aren't quite as well documented; something akin to C's #elif for example, or even rudimentary equivalency directives?

推荐答案

下面是为RAPC preprocessor命令的完整列表。在preprocessor不是很强劲,但是这是故意的。

Here's a complete listing of commands for the RAPC preprocessor. The preprocessor's not very robust, but that's on purpose.

//#preprocess - 用来指定该文件应该是preprocessed。它必须是该文件的第一行。

//#preprocess - Used to specify that the file should be preprocessed. It must be the first line of the file.

//#隐含的标签 - 这需要对文件的第二行。如果的标签的是命令行的一部分,那么整个文件应该进行编译。如果不是,那么它应该被排除。

//#implicit tag - This needs to be on the second line of the file. If tag is part of the command line, then the whole file should be compiled. If not, then it should be excluded.

再有就是在 //#ifdef的标签... ...的#el​​se #ENDIF //的#ifndef标签... ...的#el​​se #ENDIF 你提到的指令。

Then there's the //#ifdef tag ... #else ... #endif and the //#ifndef tag ... #else ... #endif directives that you mentioned.

另外请注意,没有$ P $嵌套pprocessed块,并没有宏。

Also note, there is no nesting of preprocessed blocks and no macros.

RIM帮助中心文档:
<一href=\"http://docs.blackberry.com/en/developers/deliverables/21065/Specifying_$p$pprocessor_directives_657636_11.jsp\" rel=\"nofollow\">http://docs.blackberry.com/en/developers/deliverables/21065/Specifying_$p$pprocessor_directives_657636_11.jsp

RIM Help Center Doc: http://docs.blackberry.com/en/developers/deliverables/21065/Specifying_preprocessor_directives_657636_11.jsp

这篇关于preprocessor指令由RIM编译器支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆