diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-28 19:26:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-28 19:26:17 +0000 |
commit | 632648b224dfcefbf70347d7fb3a60d8f6e7fad4 (patch) | |
tree | c450f8b93f978582ded05d8ac617be44391b20ea /nuttx/libxx/libxx_stdthrow.cxx | |
parent | 16f1044ef14ac990ef55545d83911d9140d04950 (diff) | |
download | px4-nuttx-632648b224dfcefbf70347d7fb3a60d8f6e7fad4.tar.gz px4-nuttx-632648b224dfcefbf70347d7fb3a60d8f6e7fad4.tar.bz2 px4-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/libxx_stdthrow.cxx')
-rw-r--r-- | nuttx/libxx/libxx_stdthrow.cxx | 10 |
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(); + } } |