Macro Parameters

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

Message
Author
kabayongtao
Noob
Noob
Posts: 8
Joined: 28 Jul 2011, 09:35
Noob?: No

Macro Parameters

#1 Post by kabayongtao »

While writing macros, I noticed that the parameter variables doesn't reset to null. As such, if you ran the macro even w/o specifying a new parameter, it would've read the old parameters input before.

Code: Select all

macro test{
	log $.param1
}
To reproduce:
  • console input: macro test -- 1
    console output: 1
    console input: macro test
    console output: 1
Maybe Macro plugin should set these parameters to null after executing a macro.

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Macro Parameters

#2 Post by EternalHarvest »

Fixed.

Post Reply