Document of c-modernization-kit (calc dotnet wrapper) 1.0.0
Loading...
Searching...
No Matches
NativeMethods.cs
Go to the documentation of this file.
1#pragma warning disable 1587
17#pragma warning restore 1587
18
19using System.Runtime.InteropServices;
20
22{
26 internal static class NativeMethods
27 {
37 [DllImport("libcalc", // Windows (libcalc.dll), Linux (libcalc.so) で適切な dllName を自動選択
38 CallingConvention = CallingConvention.Winapi, // Windows (__stdcall), Linux (cdecl) で適切な呼び出しを自動選択
39 EntryPoint = "calcHandler")]
40 internal static extern int CalcHandler(int kind, int a, int b, out int result);
41 }
42}