From 7bfa6b0d1e0b76050efcf401c022c7ab4c3a2012 Mon Sep 17 00:00:00 2001 From: dgp Date: Thu, 17 Jun 2004 21:26:28 +0000 Subject: Better panic message for diagnosis. --- win/tclWinInit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win/tclWinInit.c b/win/tclWinInit.c index 2eceea9..12f443b 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -7,7 +7,7 @@ * Copyright (c) 1998-1999 by Scriptics Corporation. * All rights reserved. * - * RCS: @(#) $Id: tclWinInit.c,v 1.52 2004/06/17 20:17:48 dgp Exp $ + * RCS: @(#) $Id: tclWinInit.c,v 1.53 2004/06/17 21:26:28 dgp Exp $ */ #include "tclWinInt.h" @@ -210,6 +210,7 @@ GetDefaultLibraryDir() } if (NULL == defaultLibraryDir) { +Tcl_Panic("Called GetDLD before SetDLD!"); TclpInitLibraryPath(NULL); if (NULL != *savedDirectoryPtr) { return *savedDirectoryPtr; -- cgit v0.12