Add proper support for exception for DEQUE
This commit is contained in:
1 parent
0f883d2ecf
commit
5c36e045ff
3 files changed
+125
-24
No files matched your search
@@ -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) );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user