Add proper support for exception for DEQUE

This commit is contained in:
Patrick Pelissier committed 2024-04-27 08:55:51 +02:00
1 parent 0f883d2ecf
commit 5c36e045ff
3 files changed
+125 -24

No files matched your search

+6 -2
View File
@@ -137,15 +137,19 @@ static inline void test_obj_except__set_ui(test_obj_except__t d, unsigned int v)
static inline void test_obj_except__init_set_ui(test_obj_except__t d, unsigned int v)
{
test_obj_except_trigger();
// test_obj_except_trigger(); is already triggered by test_obj_except__init
test_obj_except__init(d);
// Don't trigger exception for test_obj_except__set_ui now
test_obj_except__trigger_exception++;
test_obj_except__set_ui(d, v);
}
static inline void test_obj_except__init_set_str(test_obj_except__t d, const char v[])
{
test_obj_except_trigger();
// test_obj_except_trigger(); is already triggered by test_obj_except__init
test_obj_except__init(d);
// Don't trigger exception for test_obj_except__set_ui now
test_obj_except__trigger_exception++;
test_obj_except__set_ui(d, (unsigned int) atoi(v) );
}