In SX Microcontrollers, SX/B Compiler and SX-Key Tool, BrooksL wrote: I'm having frustrating trouble with the conditional compile directives while porting our BS2px code to SX28AC with SX/B (need speed and interrupts). I find it very confusing and odd that the syntax for these directives starts with the ' comment delimiter. Does that mean these lines can't be commented-out?? Using '' <-- that's two ' does not seem to work; the conditional compile is taken regardless. And, I must admit that I'm curious about the reason for implementing these this way. example: '{$DEFINE Bluetooth} 'compile Bluetooth code if defined (true) ''{$DEFINE COMport} 'compile serial port I/O if defined (true) '{$DEFINE EnFilter} 'enable digital filtering of sample data ''{$DEFINE DebugMode} 'compile debug statements if defined (true) ''{$DEFINE DualAxis} I could see changing DEFINE to unDEFINE, but it gets more difficult if I want to comment out the IFDEF...ELSE...ENDIF's Got any helpful guidance? -- BrooksL ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=367635#m402468 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)