Should `pragma(inline, expression)` be allowed ?

Basile B. b2.temp at gmx.com
Wed Oct 14 17:20:46 UTC 2020


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.


More information about the Digitalmars-d mailing list