fix null changes to work with C90 compilers
This commit is contained in:
parent
5525abfea8
commit
9c32a1e722
1 changed files with 2 additions and 1 deletions
|
|
@ -260,10 +260,11 @@ AddOutputArgToReturn(int pos, SEXP value, const char *name, SEXP output)
|
|||
/* Create a new pointer object */
|
||||
SWIGRUNTIMEINLINE SEXP
|
||||
SWIG_R_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
|
||||
SEXP rptr;
|
||||
if (!ptr) {
|
||||
return R_NilValue;
|
||||
}
|
||||
SEXP rptr = R_MakeExternalPtr(ptr,
|
||||
rptr = R_MakeExternalPtr(ptr,
|
||||
R_MakeExternalPtr(type, R_NilValue, R_NilValue), R_NilValue);
|
||||
SET_S4_OBJECT(rptr);
|
||||
return rptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue