What is the define __XC__ ?
-
- XCore Addict
- Posts: 204
- Joined: Sun Jun 01, 2014 10:25 pm
What is the define __XC__ ?
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?
-
Verified
- XCore Legend
- Posts: 1164
- Joined: Thu May 27, 2010 10:08 am
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
More here
Engineer at XMOS