Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import std.stdio;
- // This seems like silly boilerplate to have to write:
- version(unittest)
- {
- // do-nothing main, so that I can run ONLY my unittests.
- void main() {};
- }
- else
- {
- void main() { myMain; }
- }
- void myMain()
- {
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement