We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83999e8 commit 7d6679bCopy full SHA for 7d6679b
generic/tclsample.c
@@ -365,13 +365,10 @@ Sample_Init(
365
* - "8.1-": 8.1 and any higher version
366
* - "8.1": 8.1.x to 8.7.x
367
* - "8.1 9": allow 8.1.x to 8.7.x and 9.x.x, but not 10.x.x
368
+ * Note that Tcl_InitStubs is a macro, which is replaced by a Tcl version
369
+ * check only, if TCL_STUBS is not defined (e.g. direct link, static build)
370
*/
-#ifdef USE_TCL_STUBS
- if (Tcl_InitStubs(interp, "8.1-", 0) == NULL)
371
-#else
372
- if (Tcl_PkgRequire(interp, "Tcl", "8.1-", 0) == NULL)
373
-#endif
374
- {
+ if (Tcl_InitStubs(interp, "8.1-", 0) == NULL) {
375
return TCL_ERROR;
376
}
377
0 commit comments