Re: [jasspa] Help with a macro
&sin <string you're looking for> <string you're searching>
not the other way around!
Salman Khilji wrote:
> I am trying to write a macro that does the following:--
> Given the name of a buffer such as GraphView.cpp,
> strip it off the extension and insert in the buffer
> the following string at the current position:
> So I search in the buffer name of a '.' character.
> The problem is that the &sin function always returns
> Here it is
> define-macro function_separator
> set-variable %index &sin $buffer-bname "."
> !if &equal %index 0
> set-variable %classname $buffer-bname
> set-variable %classname &lef $buffer-bname
> insert-string %classname
> insert-string "::"