/[svn]/linuxsampler/trunk/src/scriptvm/examples/preprocnested.txt
ViewVC logotype

Annotation of /linuxsampler/trunk/src/scriptvm/examples/preprocnested.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3309 - (hide annotations) (download)
Sat Jul 15 01:15:59 2017 UTC (6 years, 9 months ago) by schoenebeck
File MIME type: text/plain
File size: 846 byte(s)
- Just a NKSP use case example.

1 schoenebeck 3309 {
2     This example is just a test case for checking the correct behavior of
3     nested USE_CODE_IF() preprocessor statements.
4     }
5     on init
6    
7     SET_CONDITION(foo)
8    
9     USE_CODE_IF(bar)
10     USE_CODE_IF(foo)
11     message("This is a bug!")
12     END_USE_CODE
13     END_USE_CODE
14    
15     USE_CODE_IF(foo)
16     USE_CODE_IF(bar)
17     message("This is a bug!")
18     END_USE_CODE
19     END_USE_CODE
20    
21     USE_CODE_IF(foo)
22     USE_CODE_IF(foo)
23     message("Nested USE_CODE_IF works!")
24     END_USE_CODE
25     END_USE_CODE
26    
27     USE_CODE_IF_NOT(foo)
28     USE_CODE_IF_NOT(bar)
29     message("This is a bug!")
30     END_USE_CODE
31     END_USE_CODE
32    
33     USE_CODE_IF_NOT(bar)
34     USE_CODE_IF_NOT(foo)
35     message("This is a bug!")
36     END_USE_CODE
37     END_USE_CODE
38    
39     USE_CODE_IF_NOT(bar)
40     USE_CODE_IF_NOT(bar)
41     message("Nested USE_CODE_IF_NOT works!")
42     END_USE_CODE
43     END_USE_CODE
44    
45     end on

  ViewVC Help
Powered by ViewVC