Pelles C forum

Pelles C => General discussions => Topic started by: neo313 on November 18, 2013, 04:36:59 PM

Title: Pelles predefined macro
Post by: neo313 on November 18, 2013, 04:36:59 PM
I'm looking for a macro definition that will tell me if I'm compiling under Pelles.

Example:


#ifdef USING_PELLES_IDE
    //pelles specific stuff
#endif


Thank you.
Title: Re: Pelles predefined macro
Post by: JohnF on November 18, 2013, 04:53:58 PM
Quote from: neo313 on November 18, 2013, 04:36:59 PM
I'm looking for a macro definition that will tell me if I'm compiling under Pelles.

Example:


#ifdef USING_PELLES_IDE
    //pelles specific stuff
#endif


Thank you.

__POCC__

John
Title: Re: Pelles predefined macro
Post by: Bitbeisser on November 18, 2013, 10:13:44 PM
Quote from: JohnF on November 18, 2013, 04:53:58 PM
Quote from: neo313 on November 18, 2013, 04:36:59 PM
I'm looking for a macro definition that will tell me if I'm compiling under Pelles.

Example:


#ifdef USING_PELLES_IDE
    //pelles specific stuff
#endif


Thank you.

__POCC__

John
Just to be very clear, those are two (2) underscores before and after the POCC...  ;)

Ralf
Title: Re: Pelles predefined macro
Post by: neo313 on November 19, 2013, 07:28:10 AM
Quote
__POCC__

John

Tnx

Quote
Just to be very clear, those are two (2) underscores before and after the POCC...  ;)

Ralf

Naturally; I couldn't find any lists of these macros, is there a list perhaps, maybe in one of the headers?
Title: Re: Pelles predefined macro
Post by: JohnF on November 19, 2013, 09:25:59 AM
In PellsC help. Use Search - type in 'Predefined preprocessor symbols'.

John
Title: Re: Pelles predefined macro
Post by: Bitbeisser on November 21, 2013, 05:43:23 AM
Quote from: neo313 on November 19, 2013, 07:28:10 AM
Quote
Just to be very clear, those are two (2) underscores before and after the POCC...  ;)

Ralf

Naturally;
I just wanted to make this clear as depending on the screen font/resolution, this might be a possible source of frustration... ;)

Ralf