diff lphobos/internal/contract.d @ 94:61615fa85940 trunk

[svn r98] Added support for std.c.stdlib.alloca via pragma(LLVM_internal, "alloca"). Added support for array .sort and .reverse properties. Fixed some bugs with pointer arithmetic. Disabled some DMD AST optimizations that was messing things up, destroying valuable information. Added a KDevelop project file, this is what I use for coding LLVMDC now :) Other minor stuff.
author lindquist
date Mon, 12 Nov 2007 06:32:46 +0100
parents c53b6e3fe49a
children 373489eeaf90
line wrap: on
line diff
--- a/lphobos/internal/contract.d	Thu Nov 08 19:21:05 2007 +0100
+++ b/lphobos/internal/contract.d	Mon Nov 12 06:32:46 2007 +0100
@@ -4,10 +4,10 @@
 
 void exit(int);
 
-void _d_assert(bool cond, uint line, char* msg)
+void _d_assert(bool cond, uint line, char[] msg)
 {
     if (!cond) {
-        printf("Aborted(%u): %s\n", line, msg);
+        printf("Aborted(%u): %.*s\n", line, msg.length, msg.ptr);
         exit(1);
     }
 }