Author Topic: Commenting out code.  (Read 3640 times)

ET

  • Guest
Commenting out code.
« 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:
Code: [Select]
joystick(inx, iny, inbuttons*)
{
   /*oldsubroutinethatworks()*/
   newuntestedsubrouting()
   ...
   other code
   ...
}
What does GUIDE have for this purpose?

Quax76

  • Guest
Re: Commenting out code.
« Reply #1 on: September 03, 2012, 08:28:01 AM »
I put those functions in a several page and let the output flow.

ET

  • Guest
Re: Commenting out code.
« Reply #2 on: September 04, 2012, 09:45:39 PM »
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

  • Guest
Re: Commenting out code.
« Reply #3 on: September 07, 2012, 08:23:41 AM »
Sorry. Of course I mean sepaerate...
Unfortunatley I don't know any easy way to wire all inputs to zero