| 153 | } |
| 154 | |
| 155 | inline 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 |
no outgoing calls
no test coverage detected