Skip to content

Commit 952bda7

Browse files
authored
Remove debug integer literal together
Same thing from version but for debug
1 parent 0c96eb6 commit 952bda7

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

spec/version.dd

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ $(H2 $(LNAME2 debug, Debug Condition))
407407
$(GRAMMAR
408408
$(GNAME DebugCondition):
409409
$(D debug)
410-
$(D debug $(LPAREN)) $(GLINK_LEX IntegerLiteral) $(D $(RPAREN))
411410
$(D debug $(LPAREN)) $(GLINK_LEX Identifier) $(D $(RPAREN))
412411
)
413412

@@ -422,12 +421,7 @@ $(GNAME DebugCondition):
422421
)
423422

424423
$(P The $(D debug) condition is satisfied when the $(D -debug) switch is
425-
passed to the compiler or when the debug level is >= 1.
426-
)
427-
428-
$(P The $(D debug $(LPAREN)) $(I IntegerLiteral) $(D $(RPAREN)) condition is satisfied
429-
when the debug
430-
level is $(D >=) $(I IntegerLiteral).
424+
passed to the compiler.
431425
)
432426

433427
$(P The $(D debug $(LPAREN)) $(I Identifier) $(D $(RPAREN)) condition is satisfied
@@ -466,10 +460,9 @@ $(H2 $(LNAME2 debug_specification, Debug Specification))
466460
$(GRAMMAR
467461
$(GNAME DebugSpecification):
468462
$(D debug =) $(GLINK_LEX Identifier) $(D ;)
469-
$(D debug =) $(GLINK_LEX IntegerLiteral) $(D ;)
470463
)
471464

472-
$(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
473466
$(D -debug) or by a $(I DebugSpecification).
474467
)
475468

@@ -494,12 +487,11 @@ debug = foo; // error, foo used before set
494487
)
495488

496489
------
497-
debug(IntegerLiteral) { } // add in debug code if debug level is >= IntegerLiteral
498490
debug(identifier) { } // add in debug code if debug keyword is identifier
499491
------
500492

501493
$(P These are presumably set by the command line as
502-
$(D -debug=)$(I n) and $(D -debug=)$(I identifier).
494+
and $(D -debug=)$(I identifier).
503495
)
504496

505497
$(H2 $(LNAME2 staticif, Static If Condition))

0 commit comments

Comments
 (0)