Changeset 78449b15 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:23Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5608106c
Parents:
adee838
git-author:
Dzejrou <dzejrou@…> (2018-05-14 17:02:33)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
Message:

cpp: fixed <cassert>, the assert macro used a function defined in <assert>, which in <cassert> is in the std::hel namespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/cassert

    radee838 r78449b15  
    4545}
    4646
     47/**
     48 * We need to fix the assert macro because it uses
     49 * a non-standard function that we have in the
     50 * std::hel namespace.
     51 */
     52#undef assert
     53#define assert(expr) \
     54        do { \
     55                if (!(expr)) \
     56                        std::hel::assert_abort(#expr, __FILE__, __LINE__); \
     57        } while (0)
     58
    4759#endif
Note: See TracChangeset for help on using the changeset viewer.