/* CodeWarrior Runtime Library
 * Copyright © 2003-2005 Metrowerks Corporation.  All rights reserved.
 *
 * Purpose:  Implementation of the portable Itanium C++ ABI
 *           see http://www.codesourcery.com/cxx-abi/
 *
 * $Date: 2012/06/01 16:06:35 $
 * $Revision: 1.1 $
 */

#include <cxxabi.h>
#include <typeinfo>

//	Raise a bad_cast exception (lib.bad.cast, 18.5.2).
//	Does not return (normally), and implementations may note this fact, e.g. with pragmas. 
extern "C" void __cxa_bad_cast ()
{
#ifndef _EWL_NO_EXCEPTIONS
	throw std::bad_cast();
#endif // _EWL_NO_EXCEPTIONS
}


//	Raise a bad_typeid exception (lib.bad.typeid, 18.5.3).
//	Does not return (normally), and implementations may note this fact, e.g. with pragmas. 
extern "C" void __cxa_bad_typeid ()
{
#ifndef _EWL_NO_EXCEPTIONS
	throw std::bad_typeid();
#endif // _EWL_NO_EXCEPTIONS
}
