bool plplot_driver_check_init_arg( const void * init_arg ) { if (arg_pack_is_instance( init_arg )) { const arg_pack_type * arg_pack = arg_pack_safe_cast_const( init_arg ); if (arg_pack_size( arg_pack ) == 2) { if ((arg_pack_iget_ctype( arg_pack , 0 ) == CTYPE_VOID_POINTER) && (arg_pack_iget_ctype( arg_pack , 1 ) == CTYPE_VOID_POINTER)) return true; else return false; } else return false; } else return false; }
void trans_func_iset_int_param(trans_func_type * trans_func , int param_index , int value ) { if (arg_pack_iget_ctype( trans_func->params , param_index) == CTYPE_INT_VALUE) arg_pack_iset_int( trans_func->params , param_index , value ); else util_abort("%s: type mismatch - the does not expect int as argument:%d \n",__func__ , param_index ); }
void trans_func_iset_double_param(trans_func_type * trans_func , int param_index , double value ) { if (arg_pack_iget_ctype( trans_func->params , param_index) == CTYPE_DOUBLE_VALUE) arg_pack_iset_double( trans_func->params , param_index , value ); else util_abort("%s: type mismatch - the does not expect double as argument:%d \n",__func__ , param_index ); }
node_ctype trans_func_iget_param_ctype( const trans_func_type * trans_func , int param_index) { return arg_pack_iget_ctype( trans_func->params , param_index); }