Changeset b183865e in mainline for generic/include/debug.h


Ignore:
Timestamp:
2005-11-09T14:12:34Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2ccd275
Parents:
e2ec980f
Message:

remove NDEBUG, replace it by ~CONFIG_DEBUG
set CONFIG_DEBUG = y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/debug.h

    re2ec980f rb183865e  
    3535/** Debugging ASSERT macro
    3636 *
    37  * If NDEBUG is not set, the ASSERT() macro
     37 * If CONFIG_DEBUG is set, the ASSERT() macro
    3838 * evaluates expr and if it is false raises
    3939 * kernel panic.
     
    4242 *
    4343 */
    44 #ifndef NDEBUG
     44#ifdef CONFIG_DEBUG
    4545#       define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s)", #expr); }
    4646#else
Note: See TracChangeset for help on using the changeset viewer.