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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Preprocessor issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

couturier

France
291 Posts

Posted - 06/02/2016 :  12:47:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Chris D

428 Posts

Posted - 06/02/2016 :  4:54:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try this:

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


Thanks,
Chris Drozdowski
Originlab Technical Support

Edited by - Chris D on 06/02/2016 4:57:27 PM
Go to Top of Page

couturier

France
291 Posts

Posted - 06/02/2016 :  7:51:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Works perfect.
Thanx
Go to Top of Page

ByDkevin42

Finland
1 Posts

Posted - 06/17/2016 :  02:00:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I had had the same error and couldn't fix it with the instructions detailed here.

Edited by - ByDkevin42 on 06/17/2016 02:04:49 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000