How to do conditional compilation according to macro's value?

In reply to kooder:

There is no equivalent text macro in SystemVerilog.

The workaround depends on what code you are intending to put in each branch.