diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-10-19 19:35:21 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-10-19 19:35:21 +0000 |
commit | 610b78c4e79f84a14047bfd19b3d8540df129f00 (patch) | |
tree | 2fb692b975e354d6d153dbbdb5f608b5e50fa563 /nuttx/libxx | |
parent | 9b7812ade5a36da7418b8bf858ef5693b7b9f372 (diff) |
Fixes for good C++ link
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4054 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/libxx')
-rwxr-xr-x | nuttx/libxx/libxx_cxapurevirtual.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/nuttx/libxx/libxx_cxapurevirtual.cxx b/nuttx/libxx/libxx_cxapurevirtual.cxx index 4a0ca36717..e8912558a5 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 <spudmonkey@racsa.co.cr> +// Copyright (C) 2009 2011 Gregory Nutt. All rights reserved. +// Author: Gregory Nutt <gnutt@nuttx.org> // // 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 <cassert> + //*************************************************************************** // 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); + } } |