Add ffi prefix in varargs
This commit is contained in:
parent
e02a60b331
commit
ba7b5bc4aa
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ Some native functions can take any number of arguments, and in these cases coffi
|
||||||
provides `vacfn-factory` (for "varargs C function factory").
|
provides `vacfn-factory` (for "varargs C function factory").
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
(def printf-factory (vacfn-factory "printf" [::ffi/c-string] ::ffi/int))
|
(def printf-factory (ffi/vacfn-factory "printf" [::ffi/c-string] ::ffi/int))
|
||||||
```
|
```
|
||||||
|
|
||||||
This returns a function of the types of the rest of the arguments which itself
|
This returns a function of the types of the rest of the arguments which itself
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue