From 0df2c997699d7473522308e26a99742d375548d2 Mon Sep 17 00:00:00 2001 From: das Date: Tue, 30 Jun 2009 14:21:43 +0000 Subject: s/Tcl_PanicEx/TclPanic/; improve clang assert Tcl_Panic macrology --- generic/tclInt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/tclInt.h b/generic/tclInt.h index 80aec34..42915e0 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -15,7 +15,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclInt.h,v 1.425 2009/06/30 00:56:08 das Exp $ + * RCS: @(#) $Id: tclInt.h,v 1.426 2009/06/30 14:21:43 das Exp $ */ #ifndef _TCLINT @@ -4192,9 +4192,9 @@ MODULE_SCOPE void TclBNInitBignumFromWideUInt(mp_int *bignum, #if defined(PURIFY) && defined(__clang__) && !defined(CLANG_ASSERT) #include #define CLANG_ASSERT(x) assert(x) -#define Tcl_PanicEx Tcl_Panic +#define TclPanic Tcl_Panic #undef Tcl_Panic -#define Tcl_Panic(f, ...) Tcl_PanicEx(f,##__VA_ARGS__); CLANG_ASSERT(0) +#define Tcl_Panic(f, ...) do { TclPanic(f,##__VA_ARGS__); CLANG_ASSERT(0); } while(0) #elif !defined(CLANG_ASSERT) #define CLANG_ASSERT(x) #endif -- cgit v0.12