PLUS+1 Tools > PLUS+1 GUIDE
Commenting out code.
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
sanjeewa:
I know this is an old post, but I want to reference this.
You can comment out pages, components, like the attach image.
Here is the process to make a block to comment out.
* You need to add Keepin/ Keepout Polygon command in Tool palette.
1. open Tool Palette (Setup->Tool Palette)
2. Select Assign in the Tool Palette
3. Then select a unassign space (box)
4. Select the "Keepin/ Keepout Polygon" command
5. After selecting the command, it will show you to select an icon.
6. To use the command, select execute in Tool palette and select the assigned box (click on the icon)
7. Then draw a box around the block (click on 4 corners) and press F9 to make the comment out.
- It will draw a box with horizontal lines as the attached image.
Navigation
[0] Message Index
[#] Next page
Go to full version