summaryrefslogblamecommitdiffstats
path: root/cpukit/libcsupport/src/__assert.c
blob: f6da15f2c9b01392043f38f0a90ad4f6b1017092 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                           



                   








                                                                 
/*  __assert - small RTEMS Specific Implementation 
 *
 *  COPYRIGHT (c) 2007.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 *
 *  $Id$
 */

#if HAVE_CONFIG_H
#include "config.h"
#endif

#include <rtems/bspIo.h>
#include <rtems.h>

void __assert(const char *file, int line, const char *failedexpr)
{
    printk("assertion \"%s\" failed: file \"%s\", line %d\n",
               failedexpr, file, line);
    rtems_fatal_error_occurred(0);
}