![]() |
![]() |
![]() |
![]() |
OMget_func_val, OMset_func_val
Synopsis
int OMget_func_val (OMobj_id object_id,OMpfi *function );
int OMset_func_val (OMobj_id object_id,OMpfi function );Description
These routines get and set a method object's function pointer; i.e., the function that is executed when the method is invoked.Arguments
object_idfunctionReturned value
The status code (see Return Status ).Examples
/* Set the function called by my_func_id (the object id
__of a method). */
OMobj_id _my_func_id;
int status;
...
status = OMset_func_val(my_func_id, (OMpfi) add_vals);See Also
![]() |
![]() |
![]() |
![]() |