Skip to content

Instantly share code, notes, and snippets.

@johnty
johnty / mapperdirect.cs
Created December 20, 2019 05:11
rough libmapper C# example using direct C interface calls
using System;
using System.Threading;
using System.Runtime.InteropServices;
public class HelloWorld
{
//[DllImport("example")]
//public static extern int add(int a, int b);
[DllImport("mapper", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]