From e3562020b14063e31dd72233241d0aa853c692a8 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 14 Sep 2023 11:03:28 +0200 Subject: [PATCH] Func: Document that callbacks are now supported on Linux --- func.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/func.go b/func.go index 48677850..00eef6a2 100644 --- a/func.go +++ b/func.go @@ -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 //