Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 2nd July 2009, 13:57   #1
balexis
Junior Member
 
Join Date: Jun 2007
Posts: 12
!define directive difference

Hi all,

Quick question I wasnt able to answer in the manual. What is the difference between:

LangString ^Foo ${LANG_ENGLISH} "Foo" (and using it with $(^Foo) )

And:

LangString Foo ${LANG_ENGLISH} "Foo" (and using it with ${^Foo} )

What does using the '^' prefix do, and why do we reference such defines with ( ) instead of { } ?

Thanks!
balexis is offline   Reply With Quote
Old 2nd July 2009, 17:46   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
"^" prefix reserved for internal language strings. Use it at your own risk.

Parenthesis are used for language strings and curly brackets are used for defines.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 2nd July 2009, 18:45   #3
balexis
Junior Member
 
Join Date: Jun 2007
Posts: 12
Gotcha, thanks kichik.
balexis is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump