Added !pragma warning error <#|all>, warning #, disable all, enable all, default all
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6898 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
52e1c24f30
commit
ca009c196b
9 changed files with 116 additions and 40 deletions
|
@ -12,6 +12,8 @@ code inside comments should not be executed
|
|||
*/
|
||||
# invalid preprocessor should be ignored
|
||||
!hello
|
||||
!error valid_preprocessor_syntax_must_be_ignored
|
||||
!define /foo /bar /baz and the same with invalid parameters
|
||||
!endif
|
||||
|
||||
!ifdef d1
|
||||
|
@ -216,6 +218,21 @@ PageExEnd
|
|||
|
||||
!insertmacro TEST_SCOPES "global" y n n n n
|
||||
|
||||
# test !pragma
|
||||
!pragma warning push
|
||||
!pragma warning disable 7000
|
||||
!include /NONFATAL doesnt_exist_nor_can_you_see_me.nsh
|
||||
!pragma warning pop
|
||||
|
||||
!pragma warning push
|
||||
!pragma warning disable all
|
||||
!include /NONFATAL doesnt_exist_nor_can_you_see_me.nsh
|
||||
!pragma warning push
|
||||
!pragma warning error all
|
||||
!pragma warning pop
|
||||
!warning "You can't see me" ; "disable all" is still in effect
|
||||
!pragma warning pop
|
||||
|
||||
!else
|
||||
|
||||
# this should just give a warning, not an error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue