Preprocessor directives supported by the RIM compiler

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

Leave a Comment