Changeset 021751 in git


Ignore:
Timestamp:
Oct 13, 2011, 9:04:27 PM (11 years ago)
Author:
Niels Ranosch <ranosch@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
14212fa342ce39308f53a23f26a3db6a7646a3fe
Parents:
975a1da798f3ea9480afd3ba40e44cda07f71695
git-author:
Niels Ranosch <ranosch@mfo.de>2011-10-13 21:04:27+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:14:02+01:00
Message:
FIX: empty debug function-macros should better be: ((void) 0/1)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_assert.h

    r975a1d r021751  
    118118{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
    119119#else /* NOASSERT */
    120 #define ASSERT(expression, message)
    121 #define ASSERT1(expression, message, parameter1)
     120#define ASSERT(expression, message) ((void) 0)
     121#define ASSERT1(expression, message, parameter1) ((void) 0)
    122122
    123 #define WARN(expression, message)
     123#define WARN(expression, message) ((void) 0)
    124124
    125125#define PVIRT_VOID(msg) = 0
  • factory/debug.h

    r975a1d r021751  
    3434(stream << deb_level_msg << objects << endl)
    3535#else /* DEBUGOUTPUT */
    36 #define DEBINCLEVEL(stream, msg)
    37 #define DEBDECLEVEL(stream, msg)
    38 #define DEBOUTSL(stream)
    39 #define DEBOUT(stream, objects)
    40 #define DEBOUTENDL(stream)
    41 #define DEBOUTLN(stream, objects)
     36#define DEBINCLEVEL(stream, msg) ((void) 0)
     37#define DEBDECLEVEL(stream, msg) ((void) 0)
     38#define DEBOUTSL(stream) ((void) 0)
     39#define DEBOUT(stream, objects) ((void) 0)
     40#define DEBOUTENDL(stream) ((void) 0)
     41#define DEBOUTLN(stream, objects) ((void) 0)
    4242#endif /* DEBUGOUTPUT */
  • libpolys/polys/monomials/p_polys.h

    r975a1d r021751  
    197197#define P_CheckIf(cond, check)  ((void)0)
    198198
    199 #define p_Test(p,r)     (1)
    200 #define p_LmTest(p,r)   (1)
    201 #define pp_Test(p, lmRing, tailRing) (1)
     199#define p_Test(p,r)     ((void) 1)
     200#define p_LmTest(p,r)   ((void) 1)
     201#define pp_Test(p, lmRing, tailRing) ((void) 1)
    202202
    203203#endif
Note: See TracChangeset for help on using the changeset viewer.