mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 19:09:21 +02:00
* allow Objective-C classes/protocols in C varargs parameter lists
git-svn-id: branches/objc@13460 -
This commit is contained in:
parent
10aa7f40cd
commit
a25e791ff8
@ -613,7 +613,8 @@ implementation
|
|||||||
if iscvarargs then
|
if iscvarargs then
|
||||||
p:=ctypeconvnode.create(p,voidpointertype);
|
p:=ctypeconvnode.create(p,voidpointertype);
|
||||||
objectdef :
|
objectdef :
|
||||||
if iscvarargs or
|
if (iscvarargs and
|
||||||
|
not is_objc_class_or_protocol(p.resultdef)) or
|
||||||
is_object(p.resultdef) then
|
is_object(p.resultdef) then
|
||||||
CGMessagePos1(p.fileinfo,type_e_wrong_type_in_array_constructor,p.resultdef.typename);
|
CGMessagePos1(p.fileinfo,type_e_wrong_type_in_array_constructor,p.resultdef.typename);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user