* allow Objective-C classes/protocols in C varargs parameter lists

git-svn-id: branches/objc@13460 -
This commit is contained in:
Jonas Maebe 2009-07-26 16:00:33 +00:00
parent 10aa7f40cd
commit a25e791ff8

View File

@ -613,7 +613,8 @@ implementation
if iscvarargs then
p:=ctypeconvnode.create(p,voidpointertype);
objectdef :
if iscvarargs or
if (iscvarargs and
not is_objc_class_or_protocol(p.resultdef)) or
is_object(p.resultdef) then
CGMessagePos1(p.fileinfo,type_e_wrong_type_in_array_constructor,p.resultdef.typename);
else