Mercurial > projects > ldc
diff gen/arrays.h @ 286:a3b7c19c866c trunk
[svn r307] Fixed: multidimensional new expressions now work. Eg.:
auto ma = new int[][] (3,9);
author | lindquist |
---|---|
date | Sat, 21 Jun 2008 04:47:14 +0200 |
parents | a95056b3c996 |
children | 895e1b50cf2a |
line wrap: on
line diff
--- a/gen/arrays.h Sat Jun 21 03:14:49 2008 +0200 +++ b/gen/arrays.h Sat Jun 21 04:47:14 2008 +0200 @@ -21,6 +21,7 @@ void DtoSetArrayToNull(LLValue* v); DSliceValue* DtoNewDynArray(Type* arrayType, DValue* dim, bool defaultInit=true); +DSliceValue* DtoNewMulDimDynArray(Type* arrayType, DValue** dims, size_t ndims, bool defaultInit=true); DSliceValue* DtoResizeDynArray(Type* arrayType, DValue* array, DValue* newdim); DSliceValue* DtoCatAssignElement(DValue* arr, Expression* exp);