mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
Remove useless subsection from hooks documentation
* doc/ref/api-utility.texi (Hook Reference): Remove useless "handling hooks from C" section that was also generating warnings.
This commit is contained in:
parent
c2ab4a3b22
commit
c896af55d4
1 changed files with 0 additions and 14 deletions
|
@ -612,20 +612,6 @@ Return 1 if @var{x} is a Scheme-level hook, 0 otherwise.
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
|
||||||
|
|
||||||
@subsubsection Handling Scheme-level hooks from C code
|
|
||||||
|
|
||||||
Here is an example of how to handle Scheme-level hooks from C code using
|
|
||||||
the above functions.
|
|
||||||
|
|
||||||
@example
|
|
||||||
if (scm_is_true (scm_hook_p (obj)))
|
|
||||||
/* handle Scheme-level hook using C functions */
|
|
||||||
scm_reset_hook_x (obj);
|
|
||||||
else
|
|
||||||
/* do something else (obj is not a hook) */
|
|
||||||
@end example
|
|
||||||
|
|
||||||
|
|
||||||
@node C Hooks
|
@node C Hooks
|
||||||
@subsubsection Hooks For C Code.
|
@subsubsection Hooks For C Code.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue