view dmd/DDMDExtensions.d @ 191:52188e7e3fb5

Fixed deprecated features, now compiles with DMD2.058 Also changed Array allocation policy: Now doesn't reallocate but malloc's, followed by a memcpy (no free). (this fixes a crash while compiling druntime. Same bug in dmd)
author korDen@korDen-pc
date Sun, 25 Mar 2012 03:11:12 +0400
parents b0d41ff5e0df
children
line wrap: on
line source

module dmd.DDMDExtensions;

/++
If you're making a tool based off of DDMD,
you can uncomment the commented lines below, 
and change "DSuperTool" to the name of your tool.
Then, create your own module to handle
"insertMemberDSuperTool".

That will allow you to insert code into any
module or class in DDMD's AST without actually
having to modify DDMD's actual AST code.
+/

//import DSuperTool.DDMDExtension;

template insertMemberExtension(T)
{
    //mixin insertMemberDSuperTool!T;
}