From 59b38bed3297acade385a79f9596504160b59596 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Thu, 21 Dec 2023 08:09:15 -0700 Subject: [PATCH] wip: create add function for testing Signed-off-by: Sumner Evans --- imessage/ffi/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imessage/ffi/main.go b/imessage/ffi/main.go index d39f022..e886c1f 100644 --- a/imessage/ffi/main.go +++ b/imessage/ffi/main.go @@ -397,3 +397,8 @@ func init_config(data *C.char, n C.int) { panic(fmt.Errorf("failed to create attachment directory: %w", err)) } } + +//export add +func add(a, b C.int) C.int { + return a + b +}