Only run code if *not* unittesting

Adam D. Ruppe destructionator at gmail.com
Thu Nov 14 13:02:20 PST 2013


There's a version(unittest), so

version(unittest)
{}
else
{
   /* only run when unittesting */
}

should work for you.


More information about the Digitalmars-d-learn mailing list