#include <setjmp.h>
Go to the source code of this file.
Data Structures | |
struct | exception_context |
Defines | |
#define | define_exception_type(etype) |
#define | init_exception_context(ec) ((void)((ec)->last = 0)) |
#define | Catch(e) exception__catch(&(e)) |
#define | Catch_anonymous exception__catch(0) |
#define | Try |
#define | exception__catch(e_addr) |
#define | Throw |
#define Catch | ( | e | ) | exception__catch(&(e)) |
#define Catch_anonymous exception__catch(0) |
Referenced by arc_db_read(), bind_perform(), combination_get_expression(), combination_underline_tree(), command_exclude(), command_merge(), command_rank(), command_report(), command_score(), covered_end_of_sim(), covered_sim_calltf(), db_add_function_task_namedblock(), db_create_expr_from_static(), db_create_sensitivity_list(), db_create_statement(), db_parallelize_statement(), db_parse_attribute(), db_read(), db_write(), defparam_add(), exclude_parse_args(), expression_create(), expression_db_read(), fsm_arg_parse(), fsm_arg_parse_attr(), fsm_arg_parse_state(), fsm_arg_parse_trans(), fsm_arg_parse_value(), fsm_db_read(), fsm_var_bind(), fst_parse(), funit_db_inst_merge(), funit_db_mod_merge(), gen_item_calc_signal_name(), inst_parm_add(), lxt_parse(), main(), merge_parse_args(), parse_and_score_dumpfile(), parse_design(), rank_parse_args(), rank_read_cdd(), read_command_file(), report_parse_args(), scope_find_param(), scope_find_signal(), score_generate_pli_tab_file(), score_generate_top_dumpvars_module(), score_generate_top_vpi_module(), score_parse_args(), substitute_env_vars(), vcd_parse(), vector_db_read(), and vsignal_db_read().
#define define_exception_type | ( | etype | ) |
struct exception__state { \
etype *exception; \
jmp_buf env; \
}
#define exception__catch | ( | e_addr | ) |
else { } \ the_exception_context->caught = 0; \ } \ else the_exception_context->caught = 1; \ the_exception_context->last = exception__p; \ break; \ } \ else exception__s.exception = e_addr; \ } \ if (!the_exception_context->caught) { } \ else
#define init_exception_context | ( | ec | ) | ((void)((ec)->last = 0)) |
Referenced by covered_sim_calltf(), and main().
#define Throw |
for (;; longjmp(the_exception_context->last->env, 1)) \ if (the_exception_context->last->exception) \ *the_exception_context->last->exception =
Referenced by arc_db_read(), args_db_read(), bind_perform(), bind_signal(), bind_task_function_namedblock(), combination_get_expression(), combination_underline_tree(), command_exclude(), command_merge(), command_rank(), command_report(), command_score(), db_add_function_task_namedblock(), db_add_instance(), db_check_dumpfile_scopes(), db_create_expr_from_static(), db_create_expression(), db_create_sensitivity_list(), db_create_statement(), db_find_signal(), db_merge_instance_trees(), db_parallelize_statement(), db_parse_attribute(), db_read(), db_write(), defparam_add(), directory_load(), enumerate_resolve(), exclude_apply_exclusions(), exclude_db_merge(), exclude_db_read(), exclude_parse_args(), exclude_resolve_reason(), expression_create(), expression_create_value(), expression_db_merge(), expression_db_read(), expression_op_func__bitstoreal(), expression_op_func__bitstoshortreal(), expression_op_func__itor(), expression_op_func__realtobits(), expression_op_func__rtoi(), expression_op_func__shortrealtobits(), expression_op_func__test_plusargs(), expression_op_func__urandom_range(), expression_op_func__value_plusargs(), expression_resize(), fsm_arg_parse(), fsm_arg_parse_attr(), fsm_arg_parse_state(), fsm_arg_parse_trans(), fsm_arg_parse_value(), fsm_db_merge(), fsm_db_read(), fsm_var_bind(), fsm_var_bind_expr(), fst_parse(), funit_db_inst_merge(), funit_db_mod_merge(), funit_db_read(), gen_item_calc_signal_name(), gen_item_resolve(), info_db_read(), info_set_vector_elem_size(), inst_parm_add(), instance_only_db_merge(), instance_only_db_read(), lxt2_rd_iter_radix(), lxt2_rd_iter_radix0(), lxt2_rd_process_block(), lxt_parse(), main(), merge_check(), merge_parse_args(), merged_cdd_db_read(), param_find_and_set_expr_value(), parse_and_score_dumpfile(), parse_design(), race_check_race_count(), race_db_read(), rank_check_index(), rank_output(), rank_parse_args(), rank_read_cdd(), read_command_file(), report_parse_args(), report_read_cdd_and_ready(), scope_find_param(), scope_find_signal(), scope_find_task_function_namedblock(), score_generate_pli_tab_file(), score_generate_top_dumpvars_module(), score_generate_top_vpi_module(), score_parse_args(), search_add_extensions(), search_add_file(), search_add_no_score_funit(), search_init(), statement_db_read(), substitute_env_vars(), vcd_parse(), vcd_parse_def(), vcd_parse_def_scope(), vcd_parse_def_var(), vcd_parse_sim(), vcd_parse_sim_ignore(), vcd_parse_sim_real(), vcd_parse_sim_vector(), vector_db_merge(), vector_db_read(), vsignal_db_merge(), and vsignal_db_read().
#define Try |
{ \ struct exception__state *exception__p, exception__s; \ int exception__i; \ exception__p = the_exception_context->last; \ the_exception_context->last = &exception__s; \ for (exception__i = 0; ; exception__i = 1) \ if (exception__i) { \ if (setjmp(exception__s.env) == 0) { \ if (&exception__s)
Referenced by arc_db_read(), bind_perform(), combination_get_expression(), combination_underline_tree(), command_exclude(), command_merge(), command_rank(), command_report(), command_score(), covered_end_of_sim(), covered_sim_calltf(), db_add_function_task_namedblock(), db_create_expr_from_static(), db_create_sensitivity_list(), db_create_statement(), db_parallelize_statement(), db_parse_attribute(), db_read(), db_write(), defparam_add(), exclude_parse_args(), expression_create(), expression_db_read(), fsm_arg_parse(), fsm_arg_parse_attr(), fsm_arg_parse_state(), fsm_arg_parse_trans(), fsm_arg_parse_value(), fsm_db_read(), fsm_var_bind(), fst_parse(), funit_db_inst_merge(), funit_db_mod_merge(), gen_item_calc_signal_name(), inst_parm_add(), lxt_parse(), main(), merge_parse_args(), parse_and_score_dumpfile(), parse_design(), rank_parse_args(), rank_read_cdd(), read_command_file(), report_parse_args(), scope_find_param(), scope_find_signal(), score_generate_pli_tab_file(), score_generate_top_dumpvars_module(), score_generate_top_vpi_module(), score_parse_args(), substitute_env_vars(), vcd_parse(), vector_db_read(), and vsignal_db_read().