blob: d1256dbc416a694fd1b20bf1446b12178b72fa5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<refentry id="ifndef">
<indexterm id="IndexIfndefOrch"><primary>#ifndef</primary><secondary>orchestra</secondary></indexterm>
<indexterm id="IndexIfndef"><primary>#ifndef</primary></indexterm>
<refentryinfo><title>Orchestra Syntax:Macros</title></refentryinfo>
<refmeta>
<refentrytitle>#ifndef</refentrytitle>
</refmeta>
<refnamediv>
<refname>#ifndef</refname>
<refpurpose>
Conditional reading of code.
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
If the specified macro is not defined then <emphasis>#ifndef</emphasis> can
incorporate text into an orchestra upto the next
<emphasis>#end</emphasis>.
This is similar to, but independent of, the <link
linkend="ScoreMacros"><citetitle>macro system in the score
language</citetitle></link>.
</para>
</refsect1>
<refsect1>
<title>Syntax</title>
<synopsis><command>#ifndef</command> NAME</synopsis>
<synopsis>....</synopsis>
<synopsis><command>#else</command> </synopsis>
<synopsis>....</synopsis>
<synopsis><command>#end</command> </synopsis>
</refsect1>
<refsect1>
<title>Performance</title>
<para>
Note that the <emphasis>#ifndef</emphasis> can be nested, like in the C preprocessor language.
</para>
</refsect1>
<refsect1>
<title>See Also</title>
<para>
<link linkend="dollar"><citetitle>$NAME</citetitle></link>,
<link linkend="define"><citetitle>#define</citetitle></link>,
<link linkend="ifdef"><citetitle>#ifdef</citetitle></link>.
</para>
</refsect1>
<refsect1>
<title>Credits</title>
<para>
<simplelist>
<member>Author: &namejohn;</member>
<member>University of Bath/Codemist Ltd.</member>
<member>Bath, UK</member>
<member>April 2005</member>
</simplelist>
</para>
<para>New in Csound5 (and 4.23f13)</para>
</refsect1>
</refentry>
|