Old 12th April 2005, 14:59   #1
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Small problem

I found a small problem (think it's an error by design) but ${__LINE__} is reset when used in an !include file.

It's a problem when used in labels because we get ${__LINE__} being the same twice in the same script (could be line 11 in main script, and then 11 again in the included script).

Perhaps a solution would be to get ${__LINE__} to be added on from where it left off (at the !include call)?

-Stu
Afrow UK is offline   Reply With Quote
Old 12th April 2005, 16:54   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
${__LINE__} was not designed for that purpose. If you want a globally unique verifier you can throw in ${__FILE__} and even ${__TIMESTAMP__}.

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 13th April 2005, 18:36   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Good idea. ${__FILE__} would do the trick for !includes.

-Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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