Add user definable flags via the CLI

Post your requests and ideas on the future development of mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Gerrit
Posts: 37
Joined: 09 Jan 2012 20:58

Add user definable flags via the CLI

#1 Post by Gerrit » 21 Feb 2012 11:03

GNU style compilers have the option to pass defines via the CLI by the -D option
Or what would be handy in the first place, if there's a flag which gives the state of debug modus or release modus.
At the moment the clockspeed is callable to "ask" what the cpu speed is, in that mind
could you implement IsDebug( ) or something or more flexible, implement the -D via the CLI

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Add user definable flags via the CLI

#2 Post by filip » 28 Feb 2012 15:36

Hi,

Thank you for your suggestion, I will pass it to our developers.

Regards,
Filip

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: Add user definable flags via the CLI

#3 Post by srdjan » 27 Apr 2012 10:07

Hi,
Gerrit wrote:GNU style compilers have the option to pass defines via the CLI by the -D option
Or what would be handy in the first place, if there's a flag which gives the state of debug modus or release modus.
At the moment the clockspeed is callable to "ask" what the cpu speed is, in that mind
could you implement IsDebug( ) or something or more flexible, implement the -D via the CLI
This is already implemented, not documented in help though :(

Actually, this flag is called MIKRO_ICD, you can test it in your code like this:

Code: Select all

#ifdef MIKRO_ICD
...
#endif

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 Wish List”