Mercurial > projects > ddmd
diff dmd/ExpStatement.d @ 79:43073c7c7769
updated to 2.035
also implemented a few missing functions
still crashes in Import.importAll though
author | Trass3r |
---|---|
date | Mon, 30 Aug 2010 03:57:51 +0200 |
parents | 2e2a5c3f943a |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/ExpStatement.d Sun Aug 29 14:39:08 2010 +0100 +++ b/dmd/ExpStatement.d Mon Aug 30 03:57:51 2010 +0200 @@ -68,7 +68,8 @@ override Expression interpret(InterState istate) { -version (LOG) { +version (LOG) +{ printf("ExpStatement.interpret(%s)\n", exp ? exp.toChars() : ""); } mixin(START!()); @@ -104,6 +105,11 @@ } return result; } + + override bool isEmpty() + { + return (exp is null); + } override int inlineCost(InlineCostState* ics) { @@ -112,8 +118,9 @@ override Expression doInline(InlineDoState ids) { - version (LOG) { - if (exp) printf("ExpStatement.doInline() '%s'\n", exp.toChars()); + version (LOG) + { + if (exp) writef("ExpStatement.doInline() '%s'\n", exp.toChars()); } return exp ? exp.doInline(ids) : null; }