Mercurial > projects > ddmd
view dmd/DDMDExtensions.d @ 188:83a36bdd5d14
Missed one in last commit.
author | Abscissa |
---|---|
date | Tue, 07 Jun 2011 23:51:08 -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; }