From 1920f18cc13be84b4ab837819cf6f405f4544ad0 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 28 Feb 2013 19:26:17 +0000 Subject: [PATCH] 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 --- libxx/libxx_stdthrow.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libxx/libxx_stdthrow.cxx b/libxx/libxx_stdthrow.cxx index 588fae26429..57f21b602ae 100644 --- a/libxx/libxx_stdthrow.cxx +++ b/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(); + } }