Commit e9de7e35f2339598b16cbb375f9992643ed81209

Anthony Green 2015-10-11T10:54:50

Merge pull request #202 from tromey/note-prep-cif-var-usage 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 054fdb7..ff72e58 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.