Subversion Repositories HelenOS-historic

Rev

Rev 1221 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1221 Rev 1224
Line 47... Line 47...
47
 *
47
 *
48
 * @param expr Expression which is expected to be true.
48
 * @param expr Expression which is expected to be true.
49
 *
49
 *
50
 */
50
 */
51
#ifdef CONFIG_DEBUG
51
#ifdef CONFIG_DEBUG
52
#   define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s), caller=%p\n", #expr, CALLER); }
52
#   define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s), caller=%.*p\n", #expr, sizeof(__address) * 2, CALLER); }
53
#else
53
#else
54
#   define ASSERT(expr)
54
#   define ASSERT(expr)
55
#endif
55
#endif
56
 
56
 
57
#define STRING(arg) STRING_ARG(arg)
57
#define STRING(arg) STRING_ARG(arg)