forked from dlang/dlang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dlang.org.ddoc
587 lines (528 loc) · 21.1 KB
/
dlang.org.ddoc
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
_=Macros for the dlang.org site look and feel. Please keep sorted by name. Multiline macros should keep one _= line before and after for clarity. Also, one _= line should be present when the first letter changes. (The "_="" is needed so there's no extra newline after the last macro defined in a group.)
ACRONYM = <acronym title="$+">$1</acronym> ($+)
ACC = $(GLOSSARY2 acc, Associated C Compiler)
ASSIGNEXPRESSION = $(GLINK2 expression, AssignExpression)
_=
BIGOH = $(SPANC bigoh, Ο($(D $0)))
BLOCKQUOTE = $(T blockquote, $(P $0))
BLOCKQUOTE_BY = $(BLOCKQUOTE $+ $(T cite, $1))
BLACK=$(SPANC black, $0)
BLUE=$(SPANC blue, $0)
BODY_PREFIX=
BOOKTABLE = $(TC table, book, $(T caption, $1)$+)
BUGZILLA = $(SPANC bugzilla, $(AHTTPS issues.dlang.org/show_bug.cgi?id=$0, Bugzilla $0))
BUGZILLA_NEW_BUG_URL=https://issues.dlang.org/enter_bug.cgi?bug_file_loc=http%3A%2F%2Fdlang.org/$(SELF_PATH)$(AMP)component=$(PROJECT)$(AMP)op_sys=All$(AMP)priority=P3$(AMP)product=D$(AMP)rep_platform=All$(AMP)short_desc=%5B$(TITLE)%5D$(AMP)version=D2
_=
CCODE=$(TC pre, ccode notranslate, $0)
CODE=$(D $0)
CODE_AMP=$(D &)
CODE_DOLLAR=$(D $)
CODE_HIGHLIGHT=$(B $(I $0))
CODE_LCURL=$(D {)
CODE_PERCENT=$(D %)
CODE_PIPE=$(D |)
CODE_RCURL=$(D })
_=
COMMON_HEADERS_DLANG=
<link rel="stylesheet" href="$(STATIC css/codemirror.css)">
_=
COMMON_SCRIPTS =
$(SCRIPTLOAD https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js)
$(SCRIPT window.jQuery || document.write('\x3Cscript src="$(STATIC js/jquery-1.7.2.min.js)">\x3C/script>');$(EXTRA_JS))
$(SCRIPTLOAD $(STATIC js/dlang.js))
$(COMMON_SCRIPTS_DLANG)
_=
COMMON_SCRIPTS_DLANG =
$(SCRIPTLOAD $(STATIC js/codemirror-compressed.js))
$(SCRIPTLOAD $(STATIC js/run.js))
_=
COMPATIBILITY_BOX_DEPRECATED = $(MESSAGE_BOX red, $(B Deprecated) - $0)
COMPATIBILITY_BOX_SUPERSEDED = $(MESSAGE_BOX gray, $(B Obsolete) - $0)
COMPATIBILITY_BOX_OBSOLETE = $(MESSAGE_BOX gray, $(B Obsolete) - $0)
COMPATIBILITY_BOX_OUTDATED = $(MESSAGE_BOX gray, $(B Obsolete) - $0)
COMPATIBILITY_BOX_EXPERIMENTAL = $(MESSAGE_BOX orange, $(B Experimental) - $0)
_=
CONSOLE=$(TC pre, console notranslate, $0)
COPYRIGHT_FOUNDATION=Copyright © 1999-$(YEAR) by the $(LINK2 $(ROOT_DIR)foundation_overview.html, D Language Foundation)
CPPCODE=$(TC pre, cppcode notranslate, $0)
CPPLISTING=$(CPPCODE $0)
CROSS=✘
_=
D=$(SPANC d_inlinecode donthyphenate notranslate, $0)
D_CODE=$(TC pre, d_code notranslate, $0)
OTHER_CODE=$(TC pre, $1code notranslate, $+)
_=
DDOC=
<!DOCTYPE html>
<html lang="en-US">
<!--
Copyright (c) 1999-$(YEAR) by the D Language Foundation
All Rights Reserved.
https://dlang.org/foundation_overview.html
-->
<head>
<meta charset="utf-8">
<meta name="keywords" content="$(META_KEYWORDS)">
<meta name="description" content="$(META_DESCRIPTION)">
$(T title, $(FULL_TITLE))
$(COMMON_HEADERS_DLANG)
<link rel="stylesheet" href="$(STATIC css/style.css)">
<link rel="stylesheet" href="$(STATIC css/print.css)" media="print">
<link rel="shortcut icon" href="$(FAVICON)">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.1, maximum-scale=10.0">
$(EXTRA_HEADERS)
</head>
<body id='$(TITLE)' class='$(BODYCLASS)'>
$(SCRIPT document.body.className += ' have-javascript')
$(DIVID top, $(DIVC helper, $(DIVC helper expand-container,
$(DIVC logo, <a href="$(ROOT)"><img id="logo" alt="D Logo" src="$(STATIC images/dlogo.svg)"></a>)
<a href="$(ROOT_DIR)menu.html" title="Menu" class="hamburger expand-toggle"><span>Menu</span></a>
$(NAVIGATION)
$(DIVC search-container expand-container,
<a href="$(ROOT_DIR)search.html" class="expand-toggle" title="Search"><span>Search</span></a>
$(SEARCH_BOX)
)
)))
$(LAYOUT_PREFIX)
$(DIVC container,
$(SUBNAV)
$(DIVCID $(HYPHENATE), content,
$(PAGE_TOOLS)
$(LAYOUT_TITLE)
$(BODY_PREFIX)
$(BODY)
$(FOOTER)
)
)
$(COMMON_SCRIPTS)
$(EXTRA_FOOTERS)
$(LAYOUT_SUFFIX)
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</body>
</html>$(LF)
_=
DDLINK=$(LINK2 $(ROOT_DIR)$1.html, $3)
DDOC_BACKQUOTED = $(D $0)
DDOC_SUMMARY = $(DIVC summary, $0)
DDOC_DESCRIPTION = $(DIVC description, $0)$(LF)
DDOC_AUTHORS = $(DDOCKEYVAL Authors, $0)$(LF)
DDOC_BUGS = $(DDOCKEYVAL Bugs, $0)$(LF)
DDOC_COPYRIGHT = $(DDOCKEYVAL Copyright, $0)$(LF)
DDOC_DATE = $(DDOCKEYVAL Date, $0)$(LF)
DDOC_DEPRECATED = $(DDOCKEYVAL Deprecated, $0)$(LF)
DDOC_EXAMPLES = <span class="dlang_runnable"></span>$(DDOCKEYVAL Examples, $0)$(LF)
DDOC_HISTORY = $(DDOCKEYVAL History, $0)$(LF)
DDOC_LICENSE = $(DDOCKEYVAL License, $0)$(LF)
DDOC_RETURNS = $(DDOCKEYVAL Returns, $0)$(LF)
DDOC_SEE_ALSO = $(DDOCKEYVAL2 SeeAlso, See Also, $0)$(LF)
DDOC_STANDARDS = $(DDOCKEYVAL Standards, $0)$(LF)
DDOC_THROWS = $(DDOCKEYVAL Throws, $0)$(LF)
DDOC_VERSION = $(DDOCKEYVAL Version, $0)$(LF)
DDOC_SECTION_H = <p class="keyval Section">$(SPANC key keySection, $0)$(LF)
DDOC_SECTION = $(DIVC val, $0</p>)$(LF)
DDOC_PARAM_ROW = <tr class="param">$0</tr>$(LF)
DDOC_PARAM_ID = <td class="param_id">$0</td>$(LF)
DDOC_PARAM_DESC = <td class="param_desc">$0</td>
DDOC_PARAMS = $(DDOCKEYVAL Parameters, <table class="params">$0</table>)$(LF)
DDOC_BLANKLINE =
DDOC_KEYWORD = $(TC code, ddoc_keyword, $0)
DDOC_PARAM = $(TC code, ddoc_param, $0)
DDOC_PSYMBOL = $(ADEF $0)$(TC code, ddoc_psymbol, $0)
DDOC_ANCHOR = $(ADEF .$1)$(DIVCID quickindex, quickindex.$1, )
DDOC_DECL = $(TC dt, d_decl, $(DIV, $0))
DDOC_UNDEFINED_MACRO = $(DDOC_COMMENT UNDEFINED MACRO: "$1")
DDOCCODE=$(TC pre, ddoccode notranslate, $0)
DDOCKEYVAL=$(DIVC keyval $1, $(SPANC key key$1, $1:) $(DIVC val val$1, $+))
DDOCKEYVAL2=$(DIVC keyval $1, $(SPANC key key$1, $2:) $(DIVC val val$1, $(TAIL $+)))
DDSUBLINK=$(LINK2 $(ROOT_DIR)$1.html#$2, $3)
_=
DMDSRC=$(HTTPS github.com/dlang/dmd/blob/master/src/dmd/$0, $0)
DOT_PREFIXED=.$1$(DOT_PREFIXED $+)
DOT_PREFIXED_SKIP=$(DOT_PREFIXED $+)
DRUNTIMESRC=$(HTTPS github.com/dlang/dmd/blob/master/druntime/src/$0, $0)
_=
$(COMMENT URL prefix for the site root.
Relative (e.g. "../") for dlang.org pages;
absolute ("https://dlang.org/") for the ebook.)
DPLLINK=$(LINK2 $(ROOT_DIR)$1,$+)
_=
ELABORATE_HEADER=$(TR <th rowspan="2">D</th><th colspan="2">C</th>)
$(TR <th scope="col">32 bit</th><th scope="col">64 bit</th>)
_=
EXTRA_HEADERS=
EXTRA_JS=
EXTRA_FOOTERS=
_=
FAVICON=$(STATIC favicon.ico)
FOOTER = $(DIVCID smallprint, copyright, $(COPYRIGHT_FOUNDATION) | Page generated by
$(LINK2 $(ROOT_DIR)spec/ddoc.html, Ddoc) on $(GEN_DATETIME))
FOOTNOTE=$(SPANC footnote, $0)
FULL_TITLE=$(TITLE) - D Programming Language
_=
GDEPRECATED=<del title="deprecated">$0</del>
GRESERVED=<ins title="reserved">$0</ins>
GEN_DATETIME=$(DATETIME)
GLINK=$(RELATIVE_LINK2 $0, $(I $0))
GLINK2=$(DDSUBLINK spec/$1,$2,$(I $2))
GLINK2_ALTTEXT=$(DDSUBLINK spec/$1,$2,$(I $3))
GLINK_LEX=$(DDSUBLINK spec/lex,$1,$(I $1))
GLOSSARY = $(HTTP dlang.org/spec/glossary.html#$0, $0)
GLOSSARY2 = $(HTTP dlang.org/spec/glossary.html#$1, $2)
GNAME=<a id="$0">$(SPANC gname, $0)</a>
GRAMMAR=$(TC pre, bnf notranslate, $0)
GRAMMAR_INFORMATIVE=$(GRAMMAR $0)
GRAMMAR_LEX=$(GRAMMAR $0)
GREEN=$(SPANC green, $0)
GSELF=$(I $0)
GT=>
_=
HASH=#
HEADERNAV_TOC=$(DIVC page-contents quickindex,
$(DIVC page-contents-header,
$(B Contents)
)
$(OL $0)
)
HEADERNAV_ITEM=$(LI $(RELATIVE_LINK2 $1, $+))
HEADERNAV_SUBITEMS=$(LI $(RELATIVE_LINK2 $1, $2)$(OL $(MULTICOLS $+)))
HTMLTAG3=<$1 $2>$(TAIL $+)</$1>
HTMLTAG3V=<$1 $2>$(TAIL $+)
HYPHENATE=hyphenate
_=
ISEXPRESSION=$(GLINK2 expression, IsExpression)
_=
LATEX=
LAYOUT_PREFIX=
LAYOUT_SUFFIX=
LAYOUT_TITLE=$(H1 $(TITLE))
LEGACY_LNAME2=<span id="$1">$(LNAME2 $+)</span>
PHOBOS_PATH=$(ROOT_DIR)phobos/
LIST=$(UL $(LIX $1, $+))
LIX=$(LI $1)$(LIX $+)
LNAME2=<a class="anchor" title="Permalink to this section" id="$1" href="#$1">$+</a>
LONGTABLE_2COLS=$(TABLE2 $2,$3 $4)
LONGTABLE_3COLS=$(TABLE2 $2,$3 $4)
LONGTABLE_5COLS=$(TABLE2 $1,$2 $3)
LT=<
LUCKY = $(HTTPS google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=$0,$0)
LUCKY2 = $(HTTPS google.com/search?btnI=I%27m+Feeling+Lucky&q=$+,$1)
_=
MDASH=$(T nobr,  — )
METACODE=$(SPANC metacode, $0)
MENU = <li><a href='$1'><span>$+</span></a></li>
MENU_W_SUBMENU = <li class='expand-container modlist-submenu-$1'><a class='expand-toggle' href='#'><span>$(TT $1)</span></a>
MENU_W_SUBMENU_LINK = <li class='expand-container'><a class='expand-toggle' href='$1'><span>$+</span></a>
MENU_W_SUBMENU_END = </li>
MENU_INTERNAL_SEPARATOR = $(DIVC modlist-internal-separator, Internal API)
MESSAGE_BOX = $(DIVC message-box message-box-$1, $+)
META_KEYWORDS=D programming language
META_DESCRIPTION=D Programming Language
MODDEFFILE=$(TC pre, moddeffile notranslate, $0)
MULTICOL_CELL=<td colspan="$1">$+</td>
MULTICOL_HEADER=<th colspan="$1">$+</th>
MULTICOLS=$+
MULTIROW_HEADER=<th rowspan="$1">$+</th>
MREF=$(LINK2 $(PHOBOS_PATH)$1$(UNDERSCORE_PREFIXED $+).html, $(D $1$(DOT_PREFIXED $+)))
MREF_ALTTEXT=$(LINK2 $(PHOBOS_PATH)$2$(UNDERSCORE_PREFIXED_SKIP $+).html, $1)
MREF1=$(LINK2 $(PHOBOS_PATH)$1.html, $(D $1))
_=
NAVIGATION=
$(DIVID cssmenu, $(UL
$(MENU https://tour.dlang.org, Learn)
$(MENU_W_SUBMENU_LINK $(ROOT_DIR)documentation.html, Documentation)
$(NAVIGATION_DOCUMENTATION)
$(MENU $(ROOT_DIR)download.html, Downloads)
$(MENU https://code.dlang.org, Packages)
$(MENU_W_SUBMENU_LINK $(ROOT_DIR)community.html, Community)
$(NAVIGATION_COMMUNITY)
$(MENU_W_SUBMENU_LINK $(ROOT_DIR)resources.html, Resources)
$(NAVIGATION_RESOURCES)
))
NAVIGATION_COMMUNITY=
$(SUBMENU_MANUAL
$(SUBMENU_LINK https://dlang.org/blog, Blog)
$(SUBMENU_LINK $(ROOT_DIR)orgs-using-d.html, Orgs using D)
$(SUBMENU_LINK https://twitter.com/search?q=%23dlang, Twitter)
$(SUBMENU_LINK_DIVIDER https://forum.dlang.org, Forums)
$(SUBMENU_LINK irc://irc.libera.chat/d, IRC)
$(SUBMENU_LINK https://discord.gg/bMZk9Q4, Community Discord)
$(SUBMENU_LINK https://wiki.dlang.org, Wiki)
$(SUBMENU_LINK_DIVIDER https://github.com/dlang, GitHub)
$(SUBMENU_LINK $(ROOT_DIR)bugstats.html, Issues)
$(SUBMENU_LINK https://wiki.dlang.org/Get_involved, Get involved)
$(SUBMENU_LINK_DIVIDER $(ROOT_DIR)foundation/contributors.html, Contributors)
$(SUBMENU_LINK $(ROOT_DIR)foundation/index.html, Foundation)
$(SUBMENU_LINK $(ROOT_DIR)/security.html, Security Team)
$(SUBMENU_LINK $(ROOT_DIR)foundation/donate.html, Donate)
$(SUBMENU_LINK $(ROOT_DIR)foundation/sponsors.html, Sponsors)
)
NAVIGATION_DOCUMENTATION=
$(SUBMENU_MANUAL
$(SUBMENU_LINK $(ROOT_DIR)spec/spec.html, Language Reference)
$(SUBMENU_LINK $(ROOT_DIR)phobos/index.html, Library Reference)
$(SUBMENU_LINK $(ROOT_DIR)dmd.html, Command-line Reference)
$(SUBMENU_LINK_DIVIDER $(ROOT_DIR)comparison.html, Feature Overview)
$(SUBMENU_LINK $(ROOT_DIR)articles.html, Articles)
)
NAVIGATION_RESOURCES=
$(SUBMENU_MANUAL
$(SUBMENU_LINK https://tour.dlang.org, Tour)
$(SUBMENU_LINK https://wiki.dlang.org/Books, Books)
$(SUBMENU_LINK https://wiki.dlang.org/Tutorials, Tutorials)
$(SUBMENU_LINK_DIVIDER https://wiki.dlang.org/Development_tools, Tools)
$(SUBMENU_LINK https://wiki.dlang.org/Editors, Editors)
$(SUBMENU_LINK https://wiki.dlang.org/IDEs, IDEs)
$(SUBMENU_LINK https://run.dlang.io, run.dlang.io)
$(SUBMENU_LINK $(VISUALD), Visual D)
$(SUBMENU_LINK_DIVIDER $(ROOT_DIR)acknowledgements.html, Acknowledgments)
$(SUBMENU_LINK $(ROOT_DIR)dstyle.html, D Style)
$(SUBMENU_LINK $(ROOT_DIR)spec/glossary.html, Glossary)
$(SUBMENU_LINK $(ROOT_DIR)sitemap.html, Sitemap)
)
_=
NEWS=http://digitalmars.com/webnews/newsgroups.php?search_txt=$(AMP)group=$1$(AMP)article_id=$+
NG_digitalmars_D = <a href="$(NEWS digitalmars.D,$0)">D/$0</a>
NG_digitalmars_D_announce = <a href="$(NEWS digitalmars.D.announce,$0)">D.announce/$0</a>
NOTRANSLATE=$(SPANC notranslate, $0)
NO=
NOT_EBOOK=$0
NOTE= $(DIVC note, $(B Note:) $0)
NOTICE_L=<a href="$1" class="notice">$2</a>
NOTICE=<span class="notice">$1</span>
_=
OPT=$(SUBSCRIPT opt)
_=
PAGE_TOOLS=
$(DIVID tools, $(DIV,
$(DIVC tip smallprint,
$(HTMLTAG3 a, href="$(BUGZILLA_NEW_BUG_URL)$(AMP)bug_severity=enhancement", Report a bug)
$(DIV,
If you spot a problem with this page, click here to create a Bugzilla issue.
)
)
$(DIVC tip smallprint,
<a href="https://github.com/dlang/$(PROJECT)/edit/master/$(PROJECT_SOURCE_DIR)$(SRC_FILENAME)">Improve this page</a>
$(DIV,
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
)
)
))
_=
_=Group related info together
PANEL=$(DIVC panel, $0)
PC=$(TC p, $1, $+)
_=
PHOBOSSRC=$(SPANC phobos_src, $(AHTTPS github.com/dlang/phobos/blob/master/$0, $0))
_=
RED=$(SPANC red, $0)
_=
$(COMMENT
The REF macro generates a link to a phobos symbol.
The first argument is the symbol name inside its module, without any
module/package parts, in usual dotted format.
Arguments 2 and higher form the module name. The segments are passed
as individual arguments.
The weird order is due to the format of the generated link, and Ddoc being
simplistic.
The REF1 variants work around DDoc limitations and allow linking to
modules not inside packages (i.e. object.)
Example:
$(REF Array.back, std,container,array) generates a link to
std.container.array.Array.back
To clarify, std.container.array is a module, Array is a struct in that
module, and back is a method of that struct.
The generated href will be "phobos/std_container_array.html#.Array.back"
(the phobos path can be different, of course).
)
REF=$(LINK2 $(PHOBOS_PATH)$2$(UNDERSCORE_PREFIXED_SKIP $+).html#.$1, $(D $2$(DOT_PREFIXED_SKIP $+, $1)))
REF1=$(LINK2 $(PHOBOS_PATH)$2.html#.$1", $(D $1))
_=
$(COMMENT
The REF_ALTTEXT macro works the same as the REF macro, but it has another
parameter in front of the others that specifies the link text.
Example:
$(REF_ALTTEXT the 'back' method, Array.back, std,container,array)
generates a link like this:
<a href="phobos/std_container_array.html#.Array.back">the 'back' method</a>
)
REF_ALTTEXT=$(LINK2 $(PHOBOS_PATH)$3$(UNDERSCORE_PREFIXED_SKIP2 $+).html#.$2, $1)
REF1_ALTTEXT=$(LINK2 $(PHOBOS_PATH)$3.html#.$2", $1)
_=
$(COMMENT
REF_SHORT takes the same arguments as REF. It displays only the
unqualified symbol name, without module or packages.
)
REF_SHORT=$(REF_ALTTEXT $(D $1), $1, $+)
_=
RELATIVE_LINK2=$(ALOCAL $1, $+)
_=
_=These take a ddoc example enclosed in `---`
RUNNABLE_EXAMPLE=<div class="runnable-examples">
$1
</div>
RUNNABLE_EXAMPLE_COMPILE=<div class="runnable-examples" data-compile=''>
$1
</div>
_=These go inside a RUNNABLE_EXAMPLE macro invocation before the first `---`
RUNNABLE_EXAMPLE_STDIN=<code class="runnable-examples-stdin">$0</code>
RUNNABLE_EXAMPLE_ARGS=<code class="runnable-examples-args">$0</code>
SAMPLESRC=$(SPANC sample_src, $(AHTTPS github.com/dlang/dmd/blob/master/compiler/samples/$0, /dmd/compiler/samples/$0))
SCINI=$(TC pre, scini notranslate, $0)
SCRIPTLOAD=<script type="text/javascript" src="$1"$+></script>
SEARCHDEFAULT_PHOBOS=
SEARCHDEFAULT_FORUM=
SEARCHDEFAULT_SPEC=
SEARCH_BOX=
$(DIVID search-box,
<form method="get" action="https://google.com/search">
<input type="hidden" id="domains" name="domains" value="dlang.org">
<input type="hidden" id="sourceid" name="sourceid" value="google-search">
$(SPANID search-query, <input id="q" name="q" placeholder="Google Search">)$(SPANID search-dropdown, $(SPANC helper,
<select id="sitesearch" name="sitesearch" size="1">
<option value="dlang.org">Entire Site</option>
<option $(SEARCHDEFAULT_SPEC) value="dlang.org/spec">Language</option>
<option $(SEARCHDEFAULT_PHOBOS) value="dlang.org/phobos">Library</option>
<option $(SEARCHDEFAULT_FORUM) value="forum.dlang.org">Forums</option>
$(SEARCH_OPTIONS_EXTRA)
</select>
))$(SPANID search-submit, <button type="submit"><i class="fa fa-search"></i><span>go</span></button>)
</form>
)
SEARCH_OPTIONS_EXTRA=
_=
SECTION1=$(H1 $1)$+
SECTION2=$(H2 $1)$+
SECTION3=$(H3 $1)$+
SECTION4=$(H4 $1)$+
SECTION5=$(H5 $1)$+
_=
$(COMMENT
SIMPLE_CHEATSHEET is used for cheat sheets that play the same role
as the listings generated by DDOX. Consequently, DDOX hides these cheat
sheets.
)
SIMPLE_CHEATSHEET=$(TC table, simple-cheatsheet, $(T caption, Cheat Sheet) $0)
_=
SLASH_PREFIXED=/$1$(SLASH_PREFIXED $+)
SRC_FILENAME=$(SRCFILENAME)
STATIC=$(ROOT_DIR)$1
SUBMENU=<ul class='expand-content'>$(SUBMENU2 $1,$+)</ul></li>
SUBMENU2=<li><a href='$1'>$2</a></li>$(SUBMENU3 $+)
SUBMENU3=$(SUBMENU2 $+)
SUBMENU_MANUAL=<ul class='expand-content'>$1 $+</ul></li>
SUBMENU_LINK=<li><a href='$1'>$2</a></li>
SUBMENU_LINK_DIVIDER=<li class="menu-divider"><a href='$1'>$2</a></li>
_=
SUBNAV=
SUBNAV_ARTICLES=
$(SUBNAV_TEMPLATE
$(SUBNAV_HEAD Articles, $(ROOT_DIR)articles/index.html, overview)
$(UL $(SUBMENU2
$(ROOT_DIR)articles/faq.html, FAQ,
$(ROOT_DIR)articles/const-faq.html, const(FAQ),
$(ROOT_DIR)articles/d-floating-point.html, Floating Point,
$(ROOT_DIR)articles/warnings.html, Warnings,
$(ROOT_DIR)articles/rationale.html, Rationale,
$(ROOT_DIR)articles/builtin.html, Builtin Rationale,
$(ROOT_DIR)articles/ctod.html, C to D,
$(ROOT_DIR)articles/cpptod.html, C++ to D,
$(ROOT_DIR)articles/pretod.html, C Preprocessor vs D,
$(ROOT_DIR)articles/code_coverage.html, Code coverage analysis,
$(ROOT_DIR)articles/exception-safe.html, Exception Safety,
$(ROOT_DIR)articles/hijack.html, Hijacking,
$(ROOT_DIR)articles/intro-to-datetime.html, Introduction to std.datetime,
$(ROOT_DIR)articles/lazy-evaluation.html, Lazy Evaluation,
$(ROOT_DIR)articles/migrate-to-shared.html, Migrating to Shared,
$(ROOT_DIR)articles/mixin.html, String Mixins,
$(ROOT_DIR)articles/regular-expression.html, Regular Expressions,
$(ROOT_DIR)articles/safed.html, SafeD,
$(ROOT_DIR)articles/templates-revisited.html, Templates Revisited,
$(ROOT_DIR)articles/constraints.html, Template Constraints,
$(ROOT_DIR)articles/ctarguments.html, Compile-time Sequences,
$(ROOT_DIR)articles/variadic-function-templates.html, Variadic Templates,
$(ROOT_DIR)articles/template-comparison.html, Template Comparison,
$(ROOT_DIR)articles/d-array-article.html, D Slices,
$(ROOT_DIR)articles/cppcontracts.html, D's Contract Programming,
$(ROOT_DIR)articles/dll-linux.html, Writing Shared Libraries for Linux,
$(ROOT_DIR)articles/RefReturnScope.html, Coralling Wild Pointers With ref return scope,
$(ROOT_DIR)articles/dll-windows.html, Creating Windows DLLs
))
)
SUBNAV_FOUNDATION=
$(SUBNAV_TEMPLATE
$(SUBNAV_HEAD Foundation, $(ROOT_DIR)foundation/index.html, overview)
$(UL $(SUBMENU2
$(ROOT_DIR)foundation/about.html, About the Foundation,
$(ROOT_DIR)foundation/donate.html, Donate,
$(ROOT_DIR)foundation/upb-scholarship.html, Scholarships,
https://dconf.org, DConf,
$(ROOT_DIR)foundation/sponsors.html, Sponsors,
$(ROOT_DIR)foundation/contributors.html, Contributors,
$(ROOT_DIR)foundation/prman.html, Pull-Request/Issue Managers,
))
)
SUBNAV_HEAD=
$(DIVC head,
$(H2 $1)
$(TC p, $4,
$(LINK2 $2, $3))
)
SUBNAV_TEMPLATE=$(DIVC subnav-helper) $(DIVC subnav, $0)
_=
SUBNAV_CLI_REFERENCE=
$(SUBNAV_TEMPLATE
$(SUBNAV_HEAD Command-line Reference, http://wiki.dlang.org/Development_tools, overview)
$(UL $(SUBMENU2
$(ROOT_DIR)dmd-windows.html, dmd (Windows),
$(ROOT_DIR)dmd-linux.html, dmd (Linux),
$(ROOT_DIR)dmd-osx.html, dmd (OSX),
$(ROOT_DIR)dmd-freebsd.html, dmd (FreeBSD),
$(ROOT_DIR)rdmd.html, rdmd,
$(ROOT_DIR)install.html, install.sh,
$(ROOT_DIR)htod.html, htod
))
)
SWNAME=$(LNAME2 switch$1, $(B $1))
SWLINK=$(LINK2 #switch$1, $(B $1))
SWITCH=$(DT $1)$(DD $+)
_=
TABLE_10=$(TABLE2 $1, $+)
TABLE_2COLS=$(TABLE2 $1, $+)
TABLE_3COLS=$(TABLE2 $1, $+)
TABLE_SPECIAL=$(TABLE2 $1,$+)
TABLE2=$(T center, $(T table, $(T caption, $1)$(CONCAT $+)))
TDX=$(TD $1)$(TDX $+)
TH=<th scope="col">$0</th>
THEAD=$(TR $(THX $1, $+))
THX=$(TC th, donthyphenate, $(B $1))$(THX $+)
TOC=$(SPEC_S $1,$+)
TOC_LISTING=$0
TR2=$(TR $1 $2)
TR3=$(TR $1 $2 $3)
TROW=$(TR $(TDX $1, $+))
TROW_EXPLANATORY=<td colspan="10">$0</td>
_=
UNDERSCORE=_
UNDERSCORE_PREFIXED=_$1$(UNDERSCORE_PREFIXED $+)
UNDERSCORE_PREFIXED_SKIP=$(UNDERSCORE_PREFIXED $+)
UNDERSCORE_PREFIXED_SKIP2=$(UNDERSCORE_PREFIXED_SKIP $+)
_=
VERTROW=$(TR $(TDX $1, $+))
VISUALD = http://rainers.github.io/visuald/visuald/StartPage.html
_=
WHITE=$(SPANC white, $0)
_=
YELLOW=$(SPANC yellow, $0)
YES=$(CHECKMARK)
PROJECT_SOURCE_DIR=
FA_ICON=<i class="fa fa-$1" aria-hidden="true"></i>
_=
_ = Opt-out of automatic keyword highlighting - see https://dlang.org/changelog/2.079.0.html#fix18361
DDOC_AUTO_PSYMBOL = $0
DDOC_AUTO_KEYWORD = $0
DDOC_AUTO_PARAM = $0
_ = DDOC_AUTO_PSYMBOL_SUPPRESS = FIXME_UNDERSCORE_PREFIX
DDOC_AUTO_PSYMBOL_SUPPRESS = $1