-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WasmImportLinkageAttribute (#93823)
* Add WasmImportLinkageAttribute --------- Co-authored-by: Aaron R Robinson <arobins@microsoft.com> Co-authored-by: Jan Kotas <jkotas@microsoft.com>
- Loading branch information
1 parent
943a50a
commit a68243b
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...s/System.Private.CoreLib/src/System/Runtime/InteropServices/WasmImportLinkageAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
namespace System.Runtime.InteropServices | ||
{ | ||
/// <summary> | ||
/// Specifies that the P/Invoke marked with this attribute should be linked in as a WASM import. | ||
/// </summary> | ||
/// <remarks> | ||
/// See https://webassembly.github.io/spec/core/syntax/modules.html#imports. | ||
/// </remarks> | ||
[AttributeUsage(AttributeTargets.Method, Inherited = false)] | ||
public sealed class WasmImportLinkageAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Instance constructor. | ||
/// </summary> | ||
public WasmImportLinkageAttribute() { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters