Mercurial > projects > ddmd
diff dmd/UnitTestDeclaration.d @ 187:b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author | Abscissa |
---|---|
date | Tue, 07 Jun 2011 23:37:34 -0400 |
parents | cd48cb899aee |
children |
line wrap: on
line diff
--- a/dmd/UnitTestDeclaration.d Tue Jun 07 21:01:03 2011 -0400 +++ b/dmd/UnitTestDeclaration.d Tue Jun 07 23:37:34 2011 -0400 @@ -17,6 +17,8 @@ import dmd.Lexer; import dmd.Identifier; +import dmd.DDMDExtensions; + /******************************* * Generate unique unittest function Id so we can have multiple * instances per module. @@ -28,6 +30,8 @@ class UnitTestDeclaration : FuncDeclaration { + mixin insertMemberExtension!(typeof(this)); + this(Loc loc, Loc endloc) { register();