fixed bug #2849872 - LogicLib Do..Loop warning

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6005 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2009-12-05 21:52:39 +00:00
parent 11e82f9b4f
commit cde0aea770
2 changed files with 21 additions and 0 deletions

View file

@ -440,6 +440,15 @@ Section /o "Run tests" TESTS
DetailPrint "FAILED For[Each]..Next test"
${EndIf}
; do..loop
StrCpy $R1 0
Call DoLoop
${If} $R1 == 5
DetailPrint "PASSED Do..Loop test"
${Else}
DetailPrint "FAILED Do..Loop test"
${EndIf}
; do..exitdo..loop
StrCpy $R1 0
StrCpy $R2 ""
@ -596,4 +605,15 @@ Function ComponentsLeave
${EndIf}
FunctionEnd
Function DoLoop
${Do}
IntOp $R1 $R1 + 1
${If} $R1 == 5
Return
${EndIf}
${Loop}
FunctionEnd
!verbose 3

View file

@ -576,6 +576,7 @@
!endif
!undef _c=${_c}
Goto ${_Continue} ; Just to ensure it is referenced at least once
Goto ${_Exit${_n}} ; Just to ensure it is referenced at least once
${_Exit${_n}}: ; Place the loop exit point
!undef ${_Logic}Condition
!insertmacro _PopScope Continue