Mercurial > projects > ddmd
diff dmd/common.d @ 136:9d194c848e3a
fixed a few null reference bugs, thx sagitario
author | Trass3r |
---|---|
date | Mon, 13 Sep 2010 23:27:38 +0200 |
parents | e28b18c23469 |
children |
line wrap: on
line diff
--- a/dmd/common.d Fri Sep 10 19:14:09 2010 +0100 +++ b/dmd/common.d Mon Sep 13 23:27:38 2010 +0200 @@ -60,6 +60,12 @@ version(MACHOBJ) {} else static assert(false, "TARGET_OSX requires MACHOBJ"); +version(CCASTSYNTAX) {} else + static assert(false, `CCASTSYNTAX is needed for code like "(void*).sizeof"`); + +version(CARRAYDECL) {} else + static assert(false, "C array declarations are used in phobos so we still need CARRAYDECL"); + version(IN_GCC) // Changes for the GDC compiler by David Friedman {