Code: Select all
#include meeply.inc
#turbo 20
|: --------------------------------------------------------------------------------------------
|: SUB: Main
|: --------------------------------------------------------------------------------------------
Sub Main
| declare and set variables here
/declare i int inner
/varset i 0
/call FixWhile
"Subroutine FixWhile wasn't found.
hello.mac@18 (Main): /call FixWhile"
Turns out after 2 heads and hours of looking at it, I declared the scope of the int I incorrectly. Should have been local instead of inner. (Thinking global, outter, inner instead of global, outter, local.)
Yes this is in the manual, yes this is my mistake. But the macro compiler flagging the wrong statement/line as the error should be considered a bug. There is no way to "comment debug" this and gives an erroneous error message. Change /declare I int inner to /declare I int local and it works.
Should this be considered a compiler bug? I know its small but typos happen even if I didn't get my syntax mixed up.
Thanks.
----- EDIT: sorry but I still need to look at this more. The person that thought they figured it out gave me a one line change to make it work and it's not. I need to sort this out first. Sorry for the premature post. -----


