diff options
author | das <das> | 2009-06-30 14:21:43 (GMT) |
---|---|---|
committer | das <das> | 2009-06-30 14:21:43 (GMT) |
commit | 0df2c997699d7473522308e26a99742d375548d2 (patch) | |
tree | 19d68c4be9abd318197d0830d8ec7b783a48dc81 | |
parent | 93288b1b6b66e279ff92700ad78627879c3e3531 (diff) | |
download | tcl-0df2c997699d7473522308e26a99742d375548d2.zip tcl-0df2c997699d7473522308e26a99742d375548d2.tar.gz tcl-0df2c997699d7473522308e26a99742d375548d2.tar.bz2 |
s/Tcl_PanicEx/TclPanic/; improve clang assert Tcl_Panic macrology
-rw-r--r-- | generic/tclInt.h | 6 |
1 files 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 <assert.h> #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 |