PLUS+1 User Forum
PLUS+1 Tools => PLUS+1 GUIDE => Topic started by: ET on August 31, 2012, 05:20:56 PM
-
How do you comment out code, such as for testing purposes?
For example, if I want to test out my new logic for mapping joystick to wheel motion, I'd like to keep the old code intact, but non-functional, while the new code is wired up and tested.
In a text-based environment, I'd do something like:
joystick(inx, iny, inbuttons*)
{
/*oldsubroutinethatworks()*/
newuntestedsubrouting()
...
other code
...
}
What does GUIDE have for this purpose?
-
I put those functions in a several page and let the output flow.
-
1. I assume that "several" was a typo, and you meant "separate"?
2. What do I do with the inputs to the old page? Is there a method for giving every signal a zero than to manually wire in a large number of zeros?
-
Sorry. Of course I mean sepaerate...
Unfortunatley I don't know any easy way to wire all inputs to zero