Skip to content

Commit 184bc21

Browse files
Document FFI\CType::getFuncParameterType() (#3883)
1 parent 0e61821 commit 184bc21

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

reference/ffi/ctype/getfuncparametertype.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<refentry xml:id="ffi-ctype.getfuncparametertype" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
33
<refnamediv>
44
<refname>FFI\CType::getFuncParameterType</refname>
5-
<refpurpose>Description</refpurpose>
5+
<refpurpose>Retrieve the type of a function parameter</refpurpose>
66
</refnamediv>
77

88
<refsect1 role="description">
@@ -12,11 +12,9 @@
1212
<methodparam><type>int</type><parameter>index</parameter></methodparam>
1313
</methodsynopsis>
1414
<para>
15-
15+
Returns the type of a parameter for the underlying function type.
1616
</para>
1717

18-
&warn.undocumented.func;
19-
2018
</refsect1>
2119

2220
<refsect1 role="parameters">
@@ -26,7 +24,7 @@
2624
<term><parameter>index</parameter></term>
2725
<listitem>
2826
<para>
29-
27+
Index of the function parameter, zero-based.
3028
</para>
3129
</listitem>
3230
</varlistentry>
@@ -36,7 +34,10 @@
3634
<refsect1 role="returnvalues">
3735
&reftitle.returnvalues;
3836
<para>
39-
37+
Returns the type of a parameter for the underlying function type.
38+
If the underlying type is not a function, or the given index is outside
39+
of the range of parameters of the function, an
40+
<exceptionname>FFI\Exception</exceptionname> is thrown.
4041
</para>
4142
</refsect1>
4243

0 commit comments

Comments
 (0)