Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 229
Registered: ‎11-21-2009
My Device: Not Specified

Multiple ifdef args on preprocessed java code? Multiple else? i.e. via RAPC?

Is it possible to specify multiple ifdefs on the RAPC such as:

 

//#ifdef V5;V4_5

 

  blah blah

 

//#else

//#endif

 

 

And could you do something like:

 

//#ifdef V5

  blah

//#elseif V4_5

 blah

//#endif

 

 

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Multiple ifdef args on preprocessed java code? Multiple else? i.e. via RAPC?

the second is possible, never tried the first but don't think it'll work.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 16
Registered: ‎09-24-2010
My Device: Bold 9700
My Carrier: TMO

Re: Multiple ifdef args on preprocessed java code? Multiple else? i.e. via RAPC?

I have worked with some code samples with:

 

#ifdef VER_4.1.0 | VER_4.2.0 | VER_4.2.1 | VER_4.3.0 | VER_4.5.0

 

it seems to work.

Highlighted
Contributor
Posts: 11
Registered: ‎06-21-2011
My Device: Bold
My Carrier: Smart

Re: Multiple ifdef args on preprocessed java code? Multiple else? i.e. via RAPC?

Havent tried the multiple conditions