<b>Tcl\_OOInitStubs</b> — initialize library access to TclOO functionality
const char \*<B>Tcl\_OOInitStubs</B>(<I>interp</I>)
<DT>Tcl\_Interp <B>\*interp</B> (in)<DD>
The Tcl interpreter that the TclOO API is integrated with and whose C
interface is going to be used.
When an extension library is going to use the C interface exposed by TclOO, it
should use <B>Tcl\_OOInitStubs</B> to initialize its access to that interface
from within its <I>\*</I><B>\_Init</B> (or <I>\*</I><B>\_SafeInit</B>) function, passing in
the <I>interp</I> that was passed into that routine as context. If the result
of calling <B>Tcl\_OOInitStubs</B> is NULL, the initialization failed and an
error message will have been left in the interpreter's result. Otherwise, the
initialization succeeded and the TclOO API may thereafter be used; the
version of the TclOO API is returned.
When using this function, either the C #define symbol <B>USE\_TCLOO\_STUBS</B>
should be defined and your library code linked against the Tcl stub library,
or that #define symbol should <I>not</I> be defined and your library code
linked against the Tcl main library directly.
<H3><A NAME="M6">BACKWARD COMPATIBILITY NOTE</A></H3>
If you are linking against the Tcl 8.5 forward compatibility package for
TclOO, <I>only</I> the stub-enabled configuration is supported and you should
also link against the TclOO independent stub library; that library is an
integrated part of the main Tcl stub library in Tcl 8.6.