On Sat, 24 Jan 2015 10:52:26 -0800, H. S. Teoh via Digitalmars-d-learn wrote:
> On Sat, Jan 24, 2015 at 06:15:29PM +0000, tcak via Digitalmars-d-learn
> wrote:
>> Is there any way to run only unittest codes, and ignore main function?
>>
>> DMD is running both of them when I use -unittest.
>
> version(unittest)
> {
> void main() {}
> }
> else {
> void main() { /* real main code here */ }
> }
real PITA and uglyness, btw.
signature.asc
Description: PGP signature
