4.104.114.84.95
Last change
on this file since 4fbd8f7 was
4fbd8f7,
checked in by Joel Sherrill <joel.sherrill@…>, on 03/28/07 at 18:58:12
|
2007-03-28 Joel Sherrill <joel@…>
PR 1234/cpukit
- libcsupport/Makefile.am: Provide printk() based implementation of
assert() to reduce dependencies in executables.
- libcsupport/src/assert.c: New file.
|
-
Property mode set to
100644
|
File size:
563 bytes
|
Line | |
---|
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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.