What is the define __XC__ ?

If you have a simple question and just want an answer.
User avatar
gerrykurz
XCore Addict
Posts: 204
Joined: Sun Jun 01, 2014 10:25 pm

What is the define __XC__ ?

Post by gerrykurz »

The ethernet code is full of conditional assembly statements ifdef __XC__ but nowhere can I find where this is defined or what is means.What is this define used for and where is it defined?


User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am

Post by infiniteimprobability »

It's a define to tell you that the compiler being used to compile the code is the XC compiler (as opposed to C compiler). Handy for when include files are shared between .xc and .c files.

 

More here