haiku/src/kernel/core/util/kernel_cpp.cpp

31 lines
435 B
C++
Raw Normal View History

/* cpp - C++ in the kernel
**
** Initial version by Axel Dörfler, axeld@pinc-software.de
** This file may be used under the terms of the OpenBeOS License.
*/
#if _KERNEL_MODE
#include "kernel_cpp.h"
const nothrow_t std::nothrow = {};
#if __GNUC__ == 2
extern "C" void
__pure_virtual()
{
//printf("pure virtual function call");
}
#elif __GNUC__ >= 3
extern "C" void
__cxa_pure_virtual()
{
}
#endif
#endif // _#if KERNEL_MODE