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:
anders_k 2021-09-19 21:10:16 +00:00
parent 0a0795dd5a
commit 3c3d929aad
3 changed files with 85 additions and 15 deletions

View file

@ -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}`