Skip to content

Commit

Permalink
wip: create add function for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <sumner@beeper.com>
  • Loading branch information
sumnerevans committed Dec 21, 2023
1 parent 379d902 commit 59b38be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imessage/ffi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 59b38be

Please sign in to comment.