comparison dmd/interpret.c @ 1640:9bf06e02070b

Merge DMD 1.057.
author Christian Kamm <kamm incasoftware de>
date Mon, 08 Mar 2010 21:39:20 +0100
parents 44b145be2ef5
children
comparison
equal deleted inserted replaced
1639:41145d30acb8 1640:9bf06e02070b
113 113
114 Type *tb = type->toBasetype(); 114 Type *tb = type->toBasetype();
115 assert(tb->ty == Tfunction); 115 assert(tb->ty == Tfunction);
116 TypeFunction *tf = (TypeFunction *)tb; 116 TypeFunction *tf = (TypeFunction *)tb;
117 Type *tret = tf->next->toBasetype(); 117 Type *tret = tf->next->toBasetype();
118 if (tf->varargs && arguments && parameters && arguments->dim != parameters->dim) 118 if (tf->varargs && arguments &&
119 ((parameters && arguments->dim != parameters->dim) || (!parameters && arguments->dim)))
119 { cantInterpret = 1; 120 { cantInterpret = 1;
120 error("C-style variadic functions are not yet implemented in CTFE"); 121 error("C-style variadic functions are not yet implemented in CTFE");
121 return NULL; 122 return NULL;
122 } 123 }
123 124