1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 00:50:25 +02:00

Removed 'internal' protection - it's all about [Friend] now

This commit is contained in:
Brian Fiete 2020-03-09 06:34:16 -07:00
parent 81af04a1ce
commit 14ac27c977
119 changed files with 1339 additions and 1388 deletions

View file

@ -63,7 +63,7 @@ namespace System.FFI
if (type.IsTypedPrimitive)
type = type.UnderlyingType;
switch (type.mTypeCode)
switch (type.[Friend]mTypeCode)
{
case .None:
return &FFIType.Void;
@ -100,8 +100,8 @@ namespace System.FFI
}
FFIType* ffiType = (FFIType*)allocBytes;
ffiType.mSize = type.mSize;
ffiType.mAlignment = type.mAlign;
ffiType.mSize = type.[Friend]mSize;
ffiType.mAlignment = type.[Friend]mAlign;
ffiType.mElements = null;
ffiType.mTypeKind = .Struct;
return ffiType;