Commit 0ebde2d24a3deb7b0cdf5cb1e625b55af2834fde

Tom Tromey 2015-10-06T11:42:43

document that there must be ntotalargs types

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/doc/libffi.texi b/doc/libffi.texi
index b9887a8..5606889 100644
--- a/doc/libffi.texi
+++ b/doc/libffi.texi
@@ -161,7 +161,7 @@ same as for @code{ffi_prep_cif} except that:
 variadic arguments.  It must be greater than zero.
 
 @var{ntotalargs} the total number of arguments, including variadic
-and fixed arguments.
+and fixed arguments.  @var{argtypes} must have this many elements.
 
 Note that, different cif's must be prepped for calls to the same
 function when different numbers of arguments are passed.