Optimize known conditions
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7330 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0a0795dd5a
commit
3c3d929aad
3 changed files with 85 additions and 15 deletions
|
@ -144,6 +144,13 @@
|
|||
!endif
|
||||
!macroend
|
||||
|
||||
!macro _LogicLib_AlwaysTrue _a _b _t _f
|
||||
!insertmacro LogicLib_JumpToBranch `${_t}` `${_f}`
|
||||
!macroend
|
||||
!macro _LogicLib_AlwaysFalse _a _b _t _f
|
||||
!insertmacro LogicLib_JumpToBranch `${_f}` `${_t}`
|
||||
!macroend
|
||||
|
||||
; String tests
|
||||
!macro _== _a _b _t _f
|
||||
StrCmp `${_a}` `${_b}` `${_t}` `${_f}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue