Rev 69 | Rev 430 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 69 | Rev 70 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | * Copyright (C) 2001-2004 Martin Decky |
2 | * Copyright (C) 2005 Martin Decky |
3 | * All rights reserved. |
3 | * All rights reserved. |
4 | * |
4 | * |
5 | * Redistribution and use in source and binary forms, with or without |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
6 | * modification, are permitted provided that the following conditions |
7 | * are met: |
7 | * are met: |
Line 40... | Line 40... | ||
40 | * |
40 | * |
41 | * @param expr Expression which is expected to be true. |
41 | * @param expr Expression which is expected to be true. |
42 | * |
42 | * |
43 | */ |
43 | */ |
44 | #ifndef NDEBUG |
44 | #ifndef NDEBUG |
45 | # define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s)\n", #expr); } |
45 | # define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s)", #expr); } |
46 | #else |
46 | #else |
47 | # define ASSERT(expr) |
47 | # define ASSERT(expr) |
48 | #endif |
48 | #endif |
49 | 49 | ||
50 | #endif |
50 | #endif |