Example usage, probably the only that's interesting at first glance. --- version(D_Coverage) enum do_inline = true; else enum do_inline = false; pragma(inline, do_inline) void stuff(){} --- Although this could be controlled from the command line side, i.e if -cov is there then be smart and dont put -inline.