mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:09:30 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user