51 lines
1.0 KiB
C++
51 lines
1.0 KiB
C++
//
|
|
// This file is part of the µOS++ III distribution.
|
|
// Copyright (c) 2014 Liviu Ionescu.
|
|
//
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// These functions are redefined locally, to avoid references to some
|
|
// heavy implementations in the standard C++ library.
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
#include <cstdlib>
|
|
#include <sys/types.h>
|
|
#include "diag/Trace.h"
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
namespace __gnu_cxx
|
|
{
|
|
void
|
|
__attribute__((noreturn))
|
|
__verbose_terminate_handler();
|
|
|
|
void
|
|
__verbose_terminate_handler()
|
|
{
|
|
trace_puts(__func__);
|
|
abort();
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
extern "C"
|
|
{
|
|
void
|
|
__attribute__((noreturn))
|
|
__cxa_pure_virtual();
|
|
|
|
void
|
|
__cxa_pure_virtual()
|
|
{
|
|
trace_puts(__func__);
|
|
abort();
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|