Skip to content

Commit e226606

Browse files
Update UnmanagedCallersOnlyAttribute.xml
1 parent 4da95d1 commit e226606

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

xml/System.Runtime.InteropServices/UnmanagedCallersOnlyAttribute.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
## Remarks
2828
2929
Methods marked with this attribute have the following restrictions:
30-
* Method must be marked "static".
30+
* Method must be marked `static`.
3131
* Must not be called from managed code.
32-
* Must only have <see href="https://docs.microsoft.com/dotnet/framework/interop/blittable-and-non-blittable-types">blittable</see> arguments.
32+
* Must only have [blittable](https://docs.microsoft.com/dotnet/framework/interop/blittable-and-non-blittable-types) arguments.
3333
3434
]]></format>
3535
</remarks>
@@ -75,7 +75,10 @@ Methods marked with this attribute have the following restrictions:
7575
## Remarks
7676
7777
Supplied types must be from the official <xref:System.Runtime.CompilerServices> namespace and be of the form `CallConvXXX`.
78-
78+
79+
The "default platform" calling convention is well defined for all supported platforms except for x86 based platforms. The x86 defaults are as follows:
80+
* Windows - [stdcall](https://docs.microsoft.com/cpp/cpp/stdcall)
81+
* Non-Windows - [cdecl](https://docs.microsoft.com/cpp/cpp/cdecl)
7982
]]></format>
8083
</remarks>
8184
</Docs>

0 commit comments

Comments
 (0)