mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 14:19:31 +02:00
* allow passing records to C varargs (also allowed by C)
git-svn-id: trunk@13595 -
This commit is contained in:
parent
8864f510e0
commit
106c0673c0
@ -612,6 +612,10 @@ implementation
|
||||
variantdef:
|
||||
if iscvarargs then
|
||||
CGMessagePos1(p.fileinfo,type_e_wrong_type_in_array_constructor,p.resultdef.typename);
|
||||
{ maybe warn in case it's not using "packrecords c"? }
|
||||
recorddef:
|
||||
if not iscvarargs then
|
||||
CGMessagePos1(p.fileinfo,type_e_wrong_type_in_array_constructor,p.resultdef.typename);
|
||||
pointerdef:
|
||||
;
|
||||
classrefdef:
|
||||
|
Loading…
Reference in New Issue
Block a user