Mercurial > projects > dil
changeset 333:268d680d5275
- Moved Pad template to the top.
author | aziz |
---|---|
date | Wed, 22 Aug 2007 08:33:00 +0000 |
parents | fa8ce2c50a11 |
children | ca8ad7c34d6a |
files | trunk/src/dil/Settings.d |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/dil/Settings.d Wed Aug 22 07:12:04 2007 +0000 +++ b/trunk/src/dil/Settings.d Wed Aug 22 08:33:00 2007 +0000 @@ -7,17 +7,6 @@ import dil.Parser, dil.SyntaxTree, dil.Declarations, dil.Expressions; import std.metastrings; -version(D2) -{ - const VERSION_MAJOR = 2; - const VERSION_MINOR = 0; -} -else -{ - const VERSION_MAJOR = 1; - const VERSION_MINOR = 0; -} - template Pad(char[] str, uint amount) { static if (str.length >= amount) @@ -31,6 +20,17 @@ const char[] Pad = Pad!(ToString!(num), amount); } +version(D2) +{ + const VERSION_MAJOR = 2; + const VERSION_MINOR = 0; +} +else +{ + const VERSION_MAJOR = 1; + const VERSION_MINOR = 0; +} + const string VERSION = Format!("%s.%s", VERSION_MAJOR, Pad!(VERSION_MINOR, 3)); const COMPILED_WITH = __VENDOR__;