diff options
author | suresh <suresh> | 1998-10-20 17:27:43 (GMT) |
---|---|---|
committer | suresh <suresh> | 1998-10-20 17:27:43 (GMT) |
commit | 53bd99ffe47193d0d6314912e7251535c8628807 (patch) | |
tree | 613d3581c43b0a07376e1889f492783143592c19 /win | |
parent | 0d09c361456f377474244ee597e06a8ab8105de3 (diff) | |
download | tcl-53bd99ffe47193d0d6314912e7251535c8628807.zip tcl-53bd99ffe47193d0d6314912e7251535c8628807.tar.gz tcl-53bd99ffe47193d0d6314912e7251535c8628807.tar.bz2 |
On Windows, Added the "debug" element of the tcl_platform array which
indicates that the particular Tcl shell has been compiled with debug
information Using "info exists tcl_platform(debug)" a Tcl script can
direct the interpreter to load debug versions of DLLs with the load
command.
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinInit.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c index 21d6379..ef6eaecc 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinInit.c,v 1.10 1998/09/14 18:40:20 stanton Exp $ + * RCS: @(#) $Id: tclWinInit.c,v 1.11 1998/10/20 17:27:47 suresh Exp $ */ #include "tclInt.h" @@ -240,6 +240,18 @@ TclPlatformInit(interp) TCL_GLOBAL_ONLY); } +#ifdef _DEBUG + /* + * The existence of the "debug" element of the tcl_platform array indicates + * that this particular Tcl shell has been compiled with debug information. + * Using "info exists tcl_platform(debug)" a Tcl script can direct the + * interpreter to load debug versions of DLLs with the load command. + */ + + Tcl_SetVar2(interp, "tcl_platform", "debug", "1", + TCL_GLOBAL_ONLY); +#endif + /* * Set up the HOME environment variable from the HOMEDRIVE & HOMEPATH * environment variables, if necessary. |