I can't believe I'm asking this but I've been staring at it half the night and am now blind to whatever is wrong. Just wrote a very basic hello.mac as a starter to use as an opening shell. For some reason a Sub in my #include can't be found. Has to be something stupid but I'm stumped. Help?
and corresponding include file
What am I missing? Both are in the Macro dir. If I comment out the call to FixWhile it works.
Thanks.
Rich (BB code):
|: --------------------------------------------------------------------------------------------
|: Hello.mac
|: by Meeply
|: --------------------------------------------------------------------------------------------
#include meeply.inc
#turbo 20
|: --------------------------------------------------------------------------------------------
|: SUB: Main
|: --------------------------------------------------------------------------------------------
Sub Main
| declare and set variables here
/declare i int inner
/varset i 0
/call FixWhile
| Main loop
/while (1) {
| Do something
/call Hello ${Me.Name}
/break
}
:OnExit
| cleanup here if necessary
/echo Got to :OnExit
/return
 
|: --------------------------------------------------------------------------------------------
|: SUB: Hello
|: --------------------------------------------------------------------------------------------
Sub Hello( string Me )
/echo Hello ${Me}
/return
and corresponding include file
Rich (BB code):
|**************************************************************************
|* include Meeply.inc - ripped from kissassist.mac
|**************************************************************************
Sub FixWhile
| Need to check for plugin MQ2Bucles and unload it. Do this ASAP so can use /while commands from the start
/if (${Bool[${Plugin[MQ2Bucles]}]}) {
/squelch /plugin MQ2Bucles unload noauto
/echo MQ2Bucles detected! This macro doesn't like it! Unloading ...
}
/return
What am I missing? Both are in the Macro dir. If I comment out the call to FixWhile it works.
Thanks.

