Revision d4c81fe5945c36432064c0275fc50af46da750fc authored by Saket Choudhary on 07 January 2022, 18:31:10 UTC, committed by Saket Choudhary on 07 January 2022, 18:31:10 UTC
2 parent s 65f743e + 937180e
Raw File
valid_pointer.c
#include <Rinternals.h>

// helper to determine if external c++ pointer is valid
SEXP isnull(SEXP pointer) {
  return Rf_ScalarLogical(!R_ExternalPtrAddr(pointer));
}
back to top