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
This commit is contained in:
patacongo 2013-02-28 19:26:17 +00:00
parent 59d3cbfe2e
commit 1920f18cc1
1 changed files with 8 additions and 2 deletions

View File

@ -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();
}
}