PGR_VALID_TYPE
if (!(PGR_VALID_SCOPE(pr_out->scope) && PGR_VALID_TYPE(pr_out->type))) {
PGR_VALID_TYPE(pr_out->type))) {