PLUS+1 Tools > PLUS+1 GUIDE

Commenting out code.

(1/1)

ET:
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:

--- Code: ---joystick(inx, iny, inbuttons*)
{
   /*oldsubroutinethatworks()*/
   newuntestedsubrouting()
   ...
   other code
   ...
}

--- End code ---
What does GUIDE have for this purpose?

Quax76:
I put those functions in a several page and let the output flow.

ET:
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?

Quax76:
Sorry. Of course I mean sepaerate...
Unfortunatley I don't know any easy way to wire all inputs to zero

Navigation

[0] Message Index

Go to full version