Changeset b183865e in mainline for generic/include/debug.h
- Timestamp:
- 2005-11-09T14:12:34Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2ccd275
- Parents:
- e2ec980f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/debug.h
re2ec980f rb183865e 35 35 /** Debugging ASSERT macro 36 36 * 37 * If NDEBUG is notset, the ASSERT() macro37 * If CONFIG_DEBUG is set, the ASSERT() macro 38 38 * evaluates expr and if it is false raises 39 39 * kernel panic. … … 42 42 * 43 43 */ 44 #if ndef NDEBUG44 #ifdef CONFIG_DEBUG 45 45 # define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s)", #expr); } 46 46 #else
Note:
See TracChangeset
for help on using the changeset viewer.