summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-02-03 20:13:34 +0100
committerKonstantin <const@const.me>2023-02-03 20:13:34 +0100
commitd55bca0a68ac72d926c34b7e9f9a50dee4fa45e1 (patch)
treefbe3ad08b5d0204ff45ae809715f4e56e1594748
parent938d677e097df1333310e18cf63bfd9ca565f8cd (diff)
Minor, code generation
-rw-r--r--WhisperNet/ExtensionMethods.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/WhisperNet/ExtensionMethods.cs b/WhisperNet/ExtensionMethods.cs
index 1bb594b..f77cb30 100644
--- a/WhisperNet/ExtensionMethods.cs
+++ b/WhisperNet/ExtensionMethods.cs
@@ -1,4 +1,5 @@
using System.Diagnostics;
+using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Whisper.Internal;
@@ -15,6 +16,7 @@ namespace Whisper
}
/// <summary>Convert language into a short ID string, like <c>"en"</c></summary>
+ [SkipLocalsInit]
public static string getCode( this eLanguage lang )
{
unsafe