[NXC][Bug] Problem with Prototypes
Posted: 29 Nov 2010, 01:26
There seems to be a bug with prototypes in NXC.
By commenting out 2 of the 5 defines in the following code (from BezierCurveSpeedTest.nxc), I can prevent a compile error:
So, for example, I do:
No more compile error!
Ignore my terrible programming practices with the define being an "anti-include/function-guard" (please suggest some better ones if you have any; I'm not sure what the best way is to prevent the same function being compiled twice, but being able to specify what you want to compile at the same time).
By commenting out 2 of the 5 defines in the following code (from BezierCurveSpeedTest.nxc), I can prevent a compile error:
Code: Select all
#define __BEZIERCURVE_NXC__LINEARBEZIERCURVE2DOUT__
#define __BEZIERCURVE_NXC__QUADRATICBEZIERCURVE2DOUT__
#define __BEZIERCURVE_NXC__CUBICBEZIERCURVE2DOUT__
#define __BEZIERCURVE_NXC__GENERALBEZIERCURVE2DOUT__
#define __BEZIERCURVE_NXC__BEZIERCURVE2DOUT__
Code: Select all
#define __BEZIERCURVE_NXC__LINEARBEZIERCURVE2DOUT__
#define __BEZIERCURVE_NXC__QUADRATICBEZIERCURVE2DOUT__
#define __BEZIERCURVE_NXC__CUBICBEZIERCURVE2DOUT__
//#define __BEZIERCURVE_NXC__GENERALBEZIERCURVE2DOUT__
//#define __BEZIERCURVE_NXC__BEZIERCURVE2DOUT__
Ignore my terrible programming practices with the define being an "anti-include/function-guard" (please suggest some better ones if you have any; I'm not sure what the best way is to prevent the same function being compiled twice, but being able to specify what you want to compile at the same time).