From 8433e286ac146b08fba1f3289f0467a8281256db Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 19 Oct 2011 19:35:21 +0000 Subject: Fixes for good C++ link git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4054 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/libxx/libxx_cxapurevirtual.cxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'nuttx/libxx') diff --git a/nuttx/libxx/libxx_cxapurevirtual.cxx b/nuttx/libxx/libxx_cxapurevirtual.cxx index 4a0ca3671..e8912558a 100755 --- a/nuttx/libxx/libxx_cxapurevirtual.cxx +++ b/nuttx/libxx/libxx_cxapurevirtual.cxx @@ -1,8 +1,8 @@ //*************************************************************************** // libxx/libxx_cxapurevirtual.cxx // -// Copyright (C) 2009 Gregory Nutt. All rights reserved. -// Author: Gregory Nutt +// Copyright (C) 2009 2011 Gregory Nutt. All rights reserved. +// Author: Gregory Nutt // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions @@ -37,6 +37,8 @@ // Included Files //*************************************************************************** +#include + //*************************************************************************** // Definitions //*************************************************************************** @@ -53,12 +55,15 @@ // Name: __cxa_pure_virtual // // Description: -// Do nothing when a pure virtual function is called +// Crash when an un-implemented pure virtual function is called // //*************************************************************************** -int __cxa_pure_virtual(void) +extern "C" { - return 0; + void __cxa_pure_virtual(void) + { + PANIC(100); + } } -- cgit v1.2.3