Skip to content

Commit fa67b92

Browse files
committed
add stubs for more exception throw calls
Fixes #3358
1 parent 5c7dbf4 commit fa67b92

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cores/esp8266/abi.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,24 @@ void __throw_out_of_range(const char* str)
127127
(void) str;
128128
panic();
129129
}
130+
131+
void __throw_bad_cast(void)
132+
{
133+
panic();
134+
}
135+
136+
void __throw_ios_failure(const char* str)
137+
{
138+
(void) str;
139+
panic();
140+
}
141+
142+
void __throw_runtime_error(const char* str)
143+
{
144+
(void) str;
145+
panic();
130146
}
147+
} // namespace std
131148

132149
// TODO: rebuild windows toolchain to make this unnecessary:
133150
void* __dso_handle;

0 commit comments

Comments
 (0)