Preprocessor directives supported by the RIM compiler

后端 未结 1 1575
青春惊慌失措
青春惊慌失措 2020-12-03 04:07

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

相关标签:
1条回答
  • 2020-12-03 04:53

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

    //#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.

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

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

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

    0 讨论(0)
提交回复
热议问题