Macros getting errors calling lables

Randomly a coitional statement will suddenly start erroring that CC3 dose not understand <Label>

The code section works, then suddenly the error pops up.

No changes were made that would affect the line of code, or any of the variables referenced.

It is increasing. first it was one conditional and its associated label. Now a second line with different variables and goto label are doing the same thing.

I am fat fingered, but I have completely retyped the offending lines multiple times. One line came from another functioning macro, so I recopied from the original source.

There is no explanation than I can uncover, and my hair is comming out in clumps.

I will say this macro language is beyond privative without even a decent println to display error messages.

or a comment function to highlight code functions.

the macro runs to about a page, so it is not terribly complex .

Thank you

Comments

  • MonsenMonsen Administrator 🖼️ 81 images Cartographer

    While not the most advanced debugging feature in the world, you can issue to the STEP command to help debug a macro and see what is going on. It will show you a message box for each line run with the variables expanded so you can see exactly what is being called.

    It can be turn off again with NOSTEP

    Loopysuemr tek
  • Thank you

    I had not seen that command.

    Although the macro seems to be failing during pre-processing, and never actually runs the interpreted code.

    I suppose I need to track down a macro reference for fast cad.

Sign In or Register to comment.