Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 59b38be

Browse files
committed
wip: create add function for testing
Signed-off-by: Sumner Evans <[email protected]>
1 parent 379d902 commit 59b38be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

imessage/ffi/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,3 +397,8 @@ func init_config(data *C.char, n C.int) {
397397
panic(fmt.Errorf("failed to create attachment directory: %w", err))
398398
}
399399
}
400+
401+
//export add
402+
func add(a, b C.int) C.int {
403+
return a + b
404+
}

0 commit comments

Comments
 (0)