public static int filter(SWIGTYPE_p_dirent d) { int ret = modshogunPINVOKE.SGIO_filter(SWIGTYPE_p_dirent.getCPtr(d)); if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }