diff options
| author | Miguel Sofer <miguel.sofer@gmail.com> | 2008-09-18 16:14:51 (GMT) |
|---|---|---|
| committer | Miguel Sofer <miguel.sofer@gmail.com> | 2008-09-18 16:14:51 (GMT) |
| commit | 4ba4193dd4ea1ec94754bb2877e7cfb5729d352e (patch) | |
| tree | 9e2c3cb92f102a8c73efc84dde61aa3c58d3d312 | |
| parent | 3501e1bb91423e5f2ff371b516314a7e2690c1c5 (diff) | |
| download | tcl-4ba4193dd4ea1ec94754bb2877e7cfb5729d352e.zip tcl-4ba4193dd4ea1ec94754bb2877e7cfb5729d352e.tar.gz tcl-4ba4193dd4ea1ec94754bb2877e7cfb5729d352e.tar.bz2 | |
simplify TCL_CT_ASSERT
| -rw-r--r-- | generic/tclInt.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index d13efb4..0ed0192 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.398 2008/09/18 15:43:21 msofer Exp $ + * RCS: @(#) $Id: tclInt.h,v 1.399 2008/09/18 16:14:51 msofer Exp $ */ #ifndef _TCLINT @@ -4045,10 +4045,8 @@ MODULE_SCOPE void TclBNInitBignumFromWideUInt(mp_int *bignum, * http://www.pixelbeat.org/programming/gcc/static_assert.html */ -#define TCL_ASSERT_CONCAT_(a, b) a##b -#define TCL_ASSERT_CONCAT(a, b) TCL_ASSERT_CONCAT_(a, b) #define TCL_CT_ASSERT(e) \ - {enum { TCL_ASSERT_CONCAT(tclCtAssert_, __LINE__) = 1/(!!(e)) };} + {enum { ct_assert_value = 1/(!!(e)) };} /* *---------------------------------------------------------------- |
