Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-package] Use R standard routines to access numeric and integer array data in C++ #4247

Merged
merged 6 commits into from
May 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions R-package/src/R_object_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ typedef union { VECTOR_SER s; double align; } SEXPREC_ALIGN;

#define R_CHAR_PTR(x) (reinterpret_cast<char*>DATAPTR(x))

#define R_INT_PTR(x) (reinterpret_cast<int*> DATAPTR(x))

#define R_REAL_PTR(x) (reinterpret_cast<double*> DATAPTR(x))

#define R_IS_NULL(x) ((*reinterpret_cast<LGBM_SE>(x)).sxpinfo.type == 0)

// 64bit pointer
Expand Down
Loading