source: rtems/cpukit/libcsupport/src/__assert.c @ be968631

4.104.114.84.95
Last change on this file since be968631 was be968631, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/30/07 at 04:57:30

2007-03-30 Ralf Corsépius <ralf.corsepius@…>

  • libcsupport/src/assert.c: Add HAVE_CONFIG_H.
  • Property mode set to 100644
File size: 609 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#if HAVE_CONFIG_H
14#include "config.h"
15#endif
16
17#include <rtems/bspIo.h>
18#include <rtems.h>
19
20void __assert(const char *file, int line, const char *failedexpr)
21{
22    printk("assertion \"%s\" failed: file \"%s\", line %d\n",
23               failedexpr, file, line);
24    rtems_fatal_error_occurred(0);
25}
Note: See TracBrowser for help on using the repository browser.