|
|
#1 |
|
Member
Join Date: Feb 2005
Posts: 51
|
Passing in quotes as an argument to a macro
Hi,
I've got a function which takes in a string as an argument. I want to pass in the string '"' -- that is, single quotes. Problem is NSIS gives me: Error: unterminated string parsing line at macro:IndexOf:2 Error in macro IndexOf on macroline 2 and my macro is defined as: !macro IndexOf String SubString StartingIndex Result Push "${String}" Push "${SubString}" Push "${StartingIndex}" Call IndexOf Pop "${Result}" !macroend !define IndexOf "!insertmacro IndexOf" So obviously Push "${SubString}" is failing but I have no idea how to fix it. Passing in non-quote characters works fine. I also tried "$\"" as an argument and it fails too. Gili |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|