MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / R_GET_PTR

Function R_GET_PTR

include/LightGBM/R_object_helper.h:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155inline void* R_GET_PTR(LGBM_SE x) {
156 if (R_IS_NULL(x)) {
157 return nullptr;
158 } else {
159 auto ret = reinterpret_cast<void*>(R_ADDR(x)[0]);
160 if (ret == NULL) {
161 ret = nullptr;
162 }
163 return ret;
164 }
165}
166
167#else
168

Callers 15

LGBM_DatasetGetSubset_RFunction · 0.50
LGBM_DatasetSaveBinary_RFunction · 0.50
LGBM_DatasetFree_RFunction · 0.50
LGBM_DatasetSetField_RFunction · 0.50
LGBM_DatasetGetField_RFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected