Page 1 of 1

Simple overloading

Posted: Fri Jan 04, 2008 3:41 am
by Hroudtwolf
Hi,

Just a little wish again.
My wish is an simple overloading for keywords per macro.

Code: Select all

Macro Repeat
   ; blablup
EndMacro
Macro End
   ; blablup
EndMacro
Best regards

Wolf

Re: Simple overloading

Posted: Fri Jan 04, 2008 5:44 am
by PB
What do you mean? To replace existing commands? It already does:

Code: Select all

Macro Repeat(ms)
  Sleep_(ms)
EndMacro

Debug "Sleeping for 1 second..."

Repeat(1000)

Debug "Done!"

Posted: Fri Jan 04, 2008 10:29 am
by inc.
He refers to PureBasic Keywords, not Commands like in your example :wink: