NSIS/Source/Tests/preprocessor.nsi
kichik 025dd40024 more
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4426 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-25 11:50:36 +00:00

52 lines
719 B
NSIS

Name preprocessor
OutFile preprocessor.exe
!ifdef some_define_that_doesnt_exist
this should not be executed, so no error should be raised
/*
code inside comments should not be executed
!ifdef
*/
!endif
!ifdef d1
!error "d1 is not defined!"
!else ifdef d2
!error "d2 is not defined!"
!else
# this should be compiled
!endif
!define d1
!ifdef d1
# this should be compiled
!else ifdef d2
!error "d2 is not defined!"
!else
!error "d1 is defined!"
!endif
!undef d1
!define d2
!ifdef d1
!error "d1 is not defined!"
!else ifdef d2
# this should be compiled
!else
!error "d2 is defined!"
!endif
!ifdef some_define_that_doesnt_exist
the next !endif should be part of this line\
!endif
!\
e\
n\
d\
i\
f
Section
SectionEnd