2022-07-26 13:06:16 +02:00

30 lines
668 B
Systemverilog

// IEEE1800-2017 Clause 22.5.2
// The directive `undef shall undefine the specified text macro if previously
// defined by a `define compiler directive within the compilation unit. An
// attempt to undefine a text macro that was not previously defined using a
// `define compiler directive can issue a warning.
`undef FOO
`undef FOO// Comment
`undef FOO // Comment
`define FOO foo
`define BAR bar
// AAA
// This block SHOULD be emitted from the preprocessor.
// BBB
// This block SHOULD be emitted from the preprocessor.
`undefineall
// CCC
// This block SHOULD be emitted from the preprocessor.
// DDD
// This block SHOULD be emitted from the preprocessor.