Added !define /intfmt

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7173 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2020-04-22 21:14:55 +00:00
parent dd117d4ba7
commit e1141d9277
6 changed files with 44 additions and 6 deletions

View file

@ -186,6 +186,9 @@ ${ASSERT} '${OUT1} = 0x80000000'
!define /redef /math OUT1 0x80000000 ^ 0x40000000
${ASSERT} '${OUT1} = 0xC0000000'
!define /redef /intfmt OUT1 "0x%.3X" 42
${ASSERT} '${OUT1} = 0x02A'
; end math functions
@ -292,6 +295,15 @@ PageExEnd
!warning "You can't see me" ; "disable all" is still in effect
!pragma warning pop
!if ! 1 <> 0
!error "1 is not 0"
!endif
!pragma warning push
!pragma warning disable 7070 ; Invalid number
!if Hello <> 0
!error "Hello is not a number"
!endif
!pragma warning pop
# test !searchparse
!searchparse "AbcDef" "Abc" OUT1