summaryrefslogtreecommitdiff
path: root/nuttx/libxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-28 19:26:17 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-28 19:26:17 +0000
commit632648b224dfcefbf70347d7fb3a60d8f6e7fad4 (patch)
treec450f8b93f978582ded05d8ac617be44391b20ea /nuttx/libxx
parent16f1044ef14ac990ef55545d83911d9140d04950 (diff)
downloadnuttx-632648b224dfcefbf70347d7fb3a60d8f6e7fad4.tar.gz
nuttx-632648b224dfcefbf70347d7fb3a60d8f6e7fad4.tar.bz2
nuttx-632648b224dfcefbf70347d7fb3a60d8f6e7fad4.zip
Add handler for bad_function_call. Petteri Aimonen patch 0015
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5691 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/libxx')
-rw-r--r--nuttx/libxx/libxx_stdthrow.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/libxx/libxx_stdthrow.cxx b/nuttx/libxx/libxx_stdthrow.cxx
index 588fae264..57f21b602 100644
--- a/nuttx/libxx/libxx_stdthrow.cxx
+++ b/nuttx/libxx/libxx_stdthrow.cxx
@@ -62,8 +62,8 @@ namespace std
void __throw_length_error(const char*)
{
- dbg("C++: Vector resize to excessive length\n");
- abort();
+ dbg("C++: Vector resize to excessive length\n");
+ abort();
}
void __throw_bad_alloc()
@@ -71,4 +71,10 @@ namespace std
dbg("C++: Bad allocation\n");
abort();
}
+
+ void __throw_bad_function_call()
+ {
+ dbg("C++: Bad function call\n");
+ abort();
+ }
}