RCS file: /usr1/CVS/rtems/cpukit/libcsupport/Makefile.am,v
retrieving revision 1.72
diff -u -r1.72 Makefile.am
|
|
|
33 | 33 | include/zilog/z8536.h |
34 | 34 | |
35 | 35 | ## General stuff |
36 | | ERROR_C_FILES = src/error.c |
| 36 | ERROR_C_FILES = src/error.c src/__assert.c |
37 | 37 | |
38 | 38 | ASSOCIATION_C_FILES = src/assoc.c src/assoclocalbyname.c \ |
39 | 39 | src/assoclocalbyremotebitfield.c src/assoclocalbyremote.c \ |
RCS file: cpukit/libcsupport/src/__assert.c
diff -N cpukit/libcsupport/src/__assert.c
-
|
+
|
|
| 1 | /* __assert - small RTEMS Specific Implementation |
| 2 | * |
| 3 | * COPYRIGHT (c) 2007. |
| 4 | * On-Line Applications Research Corporation (OAR). |
| 5 | * |
| 6 | * The license and distribution terms for this file may be |
| 7 | * found in the file LICENSE in this distribution or at |
| 8 | * http://www.rtems.com/license/LICENSE. |
| 9 | * |
| 10 | * $Id$ |
| 11 | */ |
| 12 | |
| 13 | #include <rtems/bspIo.h> |
| 14 | #include <rtems.h> |
| 15 | |
| 16 | void __assert(const char *file, int line, const char *failedexpr) |
| 17 | { |
| 18 | printk("assertion \"%s\" failed: file \"%s\", line %d\n", |
| 19 | failedexpr, file, line); |
| 20 | rtems_fatal_error_occurred(0); |
| 21 | } |