Menu

#185 !macro parameters: Option to make them optional

2.0 Series
open
Scripting (152)
5
2004-09-17
2004-09-17
No

As on forums post:
http://forums.winamp.com/showthread.php?
postid=1472726#post1472726

What I would really like on !macros also is an option for
parameters to be optional. Like for example, a character
before the parameter name. I.e.:

!macro FUNCTION_STRING_StrStrAdv OutVar String
StrToSearch *SearchDirection

Discussion

  • Diego Pedroso

    Diego Pedroso - 2004-09-17
    • labels: --> Scripting
     
  • Diego Pedroso

    Diego Pedroso - 2004-09-17
    • milestone: --> 2.0 Series
    • assigned_to: nobody --> kichik
     
  • Diego Pedroso

    Diego Pedroso - 2005-07-02

    Logged In: YES
    user_id=684911

    There is even a better idea. I would like to suggest now to
    remove this !insertmacro error:

    !insertmacro: macro \"%s\" requires %d parameter(s),
    passed %d!\n

    This error blocks the customized error handling of
    parameters. Also, removing this would allow the use of
    optional parameters, just as I wanted.

     

Log in to post a comment.