542 |
|
|
543 |
@deffn {Scheme Procedure} dynamic-call func dobj |
@deffn {Scheme Procedure} dynamic-call func dobj |
544 |
@deffnx {C Function} scm_dynamic_call (func, dobj) |
@deffnx {C Function} scm_dynamic_call (func, dobj) |
545 |
Call the C function indicated by @var{func} and @var{dobj}. |
Call a C function in a dynamic object. Two styles of |
546 |
The function is passed no arguments and its return value is |
invocation are supported: |
547 |
ignored. When @var{function} is something returned by |
|
548 |
@code{dynamic-func}, call that function and ignore @var{dobj}. |
@itemize @bullet |
549 |
When @var{func} is a string , look it up in @var{dynobj}; this |
@item @var{func} can be a function handle returned by |
550 |
is equivalent to |
@code{dynamic-func}. In this case @var{dobj} is |
551 |
|
ignored |
552 |
|
@item @var{func} can be a string with the name of the |
553 |
|
function to call, with @var{dobj} the handle of the |
554 |
|
dynamic object in which to find the function. |
555 |
|
This is equivalent to |
556 |
@smallexample |
@smallexample |
557 |
(dynamic-call (dynamic-func @var{func} @var{dobj} #f)) |
|
558 |
|
(dynamic-call (dynamic-func @var{func} @var{dobj}) #f) |
559 |
@end smallexample |
@end smallexample |
560 |
|
@end itemize |
561 |
|
|
562 |
Interrupts are deferred while the C function is executing (with |
In either case, the function is passed no arguments |
563 |
@code{SCM_DEFER_INTS}/@code{SCM_ALLOW_INTS}). |
and its return value is ignored. |
564 |
@end deffn |
@end deffn |
565 |
|
|
566 |
@deffn {Scheme Procedure} dynamic-args-call func dobj args |
@deffn {Scheme Procedure} dynamic-args-call func dobj args |