mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user