diff options
| author | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2026-06-30 21:02:59 +0200 |
|---|---|---|
| committer | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2026-06-30 21:02:59 +0200 |
| commit | 17a7b6d602ec4e0bf39078a3a9a03ef71d65cf10 (patch) | |
| tree | ec4cd3a180133e2f691f154bd05dcdbe69f0b4ca /baz | |
| parent | 9bb17da786318cf6c056bdc8a5bfb100ae7ae81c (diff) | |
| download | csharp-cmake-17a7b6d602ec4e0bf39078a3a9a03ef71d65cf10.tar.gz csharp-cmake-17a7b6d602ec4e0bf39078a3a9a03ef71d65cf10.zip | |
Add C hello library with P/Invoke from Baz
Diffstat (limited to 'baz')
| -rw-r--r-- | baz/Baz.cs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,9 +1,14 @@ using System; +using System.Runtime.InteropServices; public class Baz { + [DllImport("hello_c")] + private static extern void hello_c(); + public static void Print() { Console.WriteLine("Baz"); + hello_c(); } } |
