The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Preprocessor issue

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
couturier Posted - 06/02/2016 : 12:47:16 PM
Origin Ver. and Service Release (Select Help-->About Origin): 2016 SR2
Operating System: 7

Hi,
I have an OC function I'd like to compile only if Origin version is pro and >9 (function includes butterworth filtering).

#if _OC_VER >= 0x0900 && is_pro_version( ) == 1
bla bla bla
#endif

doesn't work. My function is never compiled.

The issue is in testing is_pro_version().
How could I do that ?

thanks
3   L A T E S T    R E P L I E S    (Newest First)
ByDkevin42 Posted - 06/17/2016 : 02:00:09 AM
I had had the same error and couldn't fix it with the instructions detailed here.
couturier Posted - 06/02/2016 : 7:51:29 PM
Works perfect.
Thanx
Chris D Posted - 06/02/2016 : 4:54:43 PM
Try this:

#define MY_ISPRO is_pro_version()
#if _OC_VER >= 0x0900 && MY_ISPRO
bla bla bla
#endif


Thanks,
Chris Drozdowski
Originlab Technical Support

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000