Skip to content

Commit

Permalink
Func: Document that callbacks are now supported on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijenbergh committed Sep 14, 2023
1 parent fb13398 commit dbbf4b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions func.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ func RegisterLibFunc(fptr interface{}, handle uintptr, name string) {
// This means that using arg ...interface{} is like a cast to the function with the arguments inside arg.
// This is not the same as C variadic.
//
// There are some limitations when using RegisterFunc on Linux. First, there is no support for function arguments.
// Second, float32 and float64 arguments and return values do not work when CGO_ENABLED=1. Otherwise, Linux
// has the same feature parity as Darwin.
// There is one limitation when using RegisterFunc on Linux: There is no support for float32 and float64 arguments/return values with CGO_ENABLED=1.
// Linux otherwise has the same feature parity as Darwin.
//
// # Memory
//
Expand Down

0 comments on commit dbbf4b1

Please sign in to comment.