Changeset 18b6a88 in mainline for uspace/lib/c/include/assert.h


Ignore:
Timestamp:
2018-04-15T09:35:04Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f44ca
Parents:
8ebe212
Message:

More ccheck fixes, sometimes with manual intervention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/assert.h

    r8ebe212 r18b6a88  
    6464
    6565#ifndef NDEBUG
    66         #define assert(expr) ((expr) ? (void) 0 : __helenos_assert_abort(#expr, __FILE__, __LINE__))
     66#define assert(expr) ((expr) ? (void) 0 : __helenos_assert_abort(#expr, __FILE__, __LINE__))
    6767#else
    68         #define assert(expr) ((void) 0)
     68#define assert(expr) ((void) 0)
    6969#endif
    7070
     
    7474
    7575#ifndef NDEBUG
    76         #define safe_assert(expr) ((expr) ? (void) 0 : __helenos_assert_quick_abort(#expr, __FILE__, __LINE__))
     76#define safe_assert(expr) ((expr) ? (void) 0 : __helenos_assert_quick_abort(#expr, __FILE__, __LINE__))
    7777#else
    78         #define safe_assert(expr) ((void) 0)
     78#define safe_assert(expr) ((void) 0)
    7979#endif
    8080
Note: See TracChangeset for help on using the changeset viewer.