Revision 64 (by gdshaw@RISCPKG.ORG, 2007/05/21 05:44:33) Disabled exceptions and enabled optimisation to reduce code size.
// This file is part of the free Filer module for RISC OS.
// Copyright � 2007 Graham Shaw.
// Redistribution and modification are permitted under the terms of the
// GNU General Public License (version 2 or any later version).

#include <csignal>

/** Attempt to execute pure virtual function.
 * If the normal RTL is allowed to handle this then it will attempt to
 * throw an exception, which will pull in all the exception handling code.
 * Instead, throw a SIGSEGV.
 */
extern "C"
void __cxa_pure_virtual()
{
	std::raise(SIGSEGV);
}