1Tcl_OOInitStubs(3)          TclOO Library Functions         Tcl_OOInitStubs(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tcl_OOInitStubs - initialize library access to TclOO functionality
9

SYNOPSIS

11       #include <tclOO.h>
12
13       const char *
14       Tcl_OOInitStubs(interp)
15

ARGUMENTS

17       Tcl_Interp *interp (in)          The Tcl interpreter that the TclOO API
18                                        is integrated with and whose C  inter‐
19                                        face is going to be used.
20______________________________________________________________________________
21

DESCRIPTION

23       When  an  extension  library is going to use the C interface exposed by
24       TclOO, it should use Tcl_OOInitStubs to initialize its access  to  that
25       interface  from  within its *_Init (or *_SafeInit) function, passing in
26       the interp that was passed into that routine as context. If the  result
27       of  calling  Tcl_OOInitStubs  is NULL, the initialization failed and an
28       error message will have been left in the interpreter's  result.  Other‐
29       wise,  the initialization succeeded and the TclOO API may thereafter be
30       used; the version of the TclOO API is returned.
31
32       When using this function, either the C #define  symbol  USE_TCLOO_STUBS
33       should  be  defined  and  your library code linked against the Tcl stub
34       library, or that #define symbol should not be defined and your  library
35       code linked against the Tcl main library directly.
36

BACKWARD COMPATIBILITY NOTE

38       If  you  are  linking against the Tcl 8.5 forward compatibility package
39       for TclOO, only the stub-enabled configuration  is  supported  and  you
40       should  also  link  against  the  TclOO  independent stub library; that
41       library is an integrated part of the main Tcl stub library in Tcl 8.6.
42

KEYWORDS

44       stubs
45

SEE ALSO

47       Tcl_InitStubs(3)
48
49
50
51TclOO                                 1.0                   Tcl_OOInitStubs(3)
Impressum