SCM

SCM Repository

[matrix] Diff of /pkg/Matrix/src/Mutils.c
ViewVC logotype

Diff of /pkg/Matrix/src/Mutils.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3269, Wed Mar 21 23:15:18 2018 UTC revision 3270, Fri Mar 23 08:50:48 2018 UTC
# Line 1370  Line 1370 
1370      return;      return;
1371  }  }
1372    
1373    /**
1374     * A safe  NEW_OBJECT(MAKE_CLASS(cls)),  where the caller must protect the
1375     * return value of this function
1376     *
1377     * @param an R character string specifying the name of a known S4 class
1378     */
1379    SEXP NEW_OBJECT_OF_CLASS(SEXP cls)
1380    {
1381        SEXP ans = NEW_OBJECT(PROTECT(MAKE_CLASS(cls)));
1382        UNPROTECT(1);
1383        return ans;
1384    }

Legend:
Removed from v.3269  
changed lines
  Added in v.3270

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge