@@ -58,7 +58,6 @@ $(H2 $(LNAME2 version, Version Condition))
58
58
59
59
$(GRAMMAR
60
60
$(GNAME VersionCondition):
61
- $(D version $(LPAREN)) $(GLINK_LEX IntegerLiteral) $(D $(RPAREN))
62
61
$(D version $(LPAREN)) $(GLINK_LEX Identifier) $(D $(RPAREN))
63
62
$(D version $(LPAREN)) $(D unittest) $(D $(RPAREN))
64
63
$(D version $(LPAREN)) $(D assert) $(D $(RPAREN))
@@ -68,15 +67,14 @@ $(GNAME VersionCondition):
68
67
with a single source file.
69
68
)
70
69
71
- $(P The $(I VersionCondition) is satisfied if the $(I IntegerLiteral)
72
- is greater than or equal to the current $(I version level),
73
- or if $(I Identifier) matches a $(I version identifier).
70
+ $(P The $(I VersionCondition) is satisfied if $(I Identifier)
71
+ matches a $(I version identifier).
74
72
)
75
73
76
- $(P The $(I version level) and $(I version identifier) can
77
- be set on the command line by the $(D -version) switch
78
- or in the module itself with a $(GLINK VersionSpecification),
79
- or they can be predefined by the compiler.
74
+ $(P The $(I version identifier) can be set on the command line
75
+ by the $(D -version) switch or in the module itself with a
76
+ $(GLINK VersionSpecification), or they can be predefined
77
+ by the compiler.
80
78
)
81
79
82
80
$(P Version identifiers are in their own unique name space, they do
@@ -118,7 +116,6 @@ $(H2 $(LEGACY_LNAME2 VersionSpecification, version-specification, Version Specif
118
116
$(GRAMMAR
119
117
$(GNAME VersionSpecification):
120
118
$(D version =) $(GLINK_LEX Identifier) $(D ;)
121
- $(D version =) $(GLINK_LEX IntegerLiteral) $(D ;)
122
119
)
123
120
124
121
$(P The version specification makes it straightforward to group
@@ -194,10 +191,6 @@ class Foo
194
191
)
195
192
196
193
------
197
- version($(CODE_HIGHLIGHT n)) // add in version code if version level is >= n
198
- {
199
- ... version code ...
200
- }
201
194
202
195
version($(CODE_HIGHLIGHT identifier)) // add in version code if version
203
196
// keyword is identifier
@@ -206,8 +199,8 @@ version($(CODE_HIGHLIGHT identifier)) // add in version code if version
206
199
}
207
200
------
208
201
209
- $(P These are presumably set by the command line as
210
- $(D -version=n) and $(D -version= identifier).
202
+ $(P This is presumably set by the command line as
203
+ $(D -version=identifier).
211
204
)
212
205
213
206
@@ -414,7 +407,6 @@ $(H2 $(LNAME2 debug, Debug Condition))
414
407
$(GRAMMAR
415
408
$(GNAME DebugCondition):
416
409
$(D debug)
417
- $(D debug $(LPAREN)) $(GLINK_LEX IntegerLiteral) $(D $(RPAREN))
418
410
$(D debug $(LPAREN)) $(GLINK_LEX Identifier) $(D $(RPAREN))
419
411
)
420
412
@@ -429,12 +421,7 @@ $(GNAME DebugCondition):
429
421
)
430
422
431
423
$(P The $(D debug) condition is satisfied when the $(D -debug) switch is
432
- passed to the compiler or when the debug level is >= 1.
433
- )
434
-
435
- $(P The $(D debug $(LPAREN)) $(I IntegerLiteral) $(D $(RPAREN)) condition is satisfied
436
- when the debug
437
- level is $(D >=) $(I IntegerLiteral).
424
+ passed to the compiler.
438
425
)
439
426
440
427
$(P The $(D debug $(LPAREN)) $(I Identifier) $(D $(RPAREN)) condition is satisfied
@@ -473,10 +460,9 @@ $(H2 $(LNAME2 debug_specification, Debug Specification))
473
460
$(GRAMMAR
474
461
$(GNAME DebugSpecification):
475
462
$(D debug =) $(GLINK_LEX Identifier) $(D ;)
476
- $(D debug =) $(GLINK_LEX IntegerLiteral) $(D ;)
477
463
)
478
464
479
- $(P Debug identifiers and levels are set either by the command line switch
465
+ $(P Debug identifiers are set either by the command line switch
480
466
$(D -debug) or by a $(I DebugSpecification).
481
467
)
482
468
@@ -501,12 +487,11 @@ debug = foo; // error, foo used before set
501
487
)
502
488
503
489
------
504
- debug(IntegerLiteral) { } // add in debug code if debug level is >= IntegerLiteral
505
490
debug(identifier) { } // add in debug code if debug keyword is identifier
506
491
------
507
492
508
493
$(P These are presumably set by the command line as
509
- $(D -debug=)$(I n) and $(D -debug=)$(I identifier).
494
+ and $(D -debug=)$(I identifier).
510
495
)
511
496
512
497
$(H2 $(LNAME2 staticif, Static If Condition))
0 commit comments