Mercurial > projects > dil
changeset 372:eb08126cca56
- Applied patch by Jari-Matti M?kel?. Should compile with tangobos now.
author | aziz |
---|---|
date | Thu, 06 Sep 2007 12:31:01 +0000 |
parents | 01887f05d4b0 |
children | 3df70e5e87f3 |
files | trunk/src/dil/Token.d |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/dil/Token.d Thu Sep 06 07:10:03 2007 +0000 +++ b/trunk/src/dil/Token.d Thu Sep 06 12:31:01 2007 +0000 @@ -215,7 +215,10 @@ { void* p = malloc(size); if (p is null) - throw new OutOfMemoryException(); + version(Tango) + throw new OutOfMemoryException(__FILE__, __LINE__); + else + throw new OutOfMemoryException(); *cast(Token*)p = Token.init; return p; }