if( !SvROK(ST(1)) ) { printf("\nDEBUG: second parameter not found.\n"); XSRETURN_IV(1); } printf("\nDEBUG: second parameter found.\n");