Subversion Repositories HelenOS-historic

Rev

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

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