Old 16th September 2010, 16:41   #1
Marshall7a
Junior Member
 
Join Date: Oct 2004
Location: UK
Posts: 33
If I comment out the ${For} and ${Next} lines, the compiler tells me this:

I am include number 10 (file1.nsh:5)
!undef: "FILENUM"
!define: "FILENUM"="10"
!include: "file1.nsh"
parseScript: too many levels of includes (10 max).

So even though the limit is 10 there is a bug with LogicLib at 8 levels.

Recursive insertmacro doesn't work either:
!insertmacro: macro "recurse" already being inserted!

This means there is no way to do any kind of compile-time looping which is very restrictive.

1. Bug with include/LogicLib definitely needs fixing because that could be down to something more serious.
2. Pretty pretty please remove the 10-level nested include limit. Unlimited if possible, increased to at least 32 if there has to be a limit... That or allow recursive macro-inserts.

I've never been very sure about what is right. I'm not even sure that there is such a thing as right. Or wrong. Just places to stand.
Marshall7a 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