Skip to content
Tcl Source Code Artifact [9aeb5422dd]
Login

Artifact [9aeb5422dd]

Artifact 9aeb5422dd895721d3f223147921abc9609f41b94c1e545864334d5d34560a88:


/* must be compiled without stubs */
#undef USE_TCL_STUBS
#include <tcl.h>

Tcl_Interp * Tcl_CreateInterpWithStubs(const char *version, int exact)
{
    Tcl_Interp *interp = Tcl_CreateInterp();

    if (Tcl_Init(interp) == TCL_ERROR
        || Tcl_InitStubs(interp, version, exact) == NULL
        || Tcl_PkgRequire(interp, "Tcl", version, exact) == NULL) {
	return NULL;
    }   
    return interp;
}