| 216 | class ExternCFunctionObjImpl : public FunctionObj { |
| 217 | public: |
| 218 | ExternCFunctionObjImpl(void* self, TVMFFISafeCallType safe_call, void (*deleter)(void* self)) |
| 219 | : self_(self), safe_call_(safe_call), deleter_(deleter) { |
| 220 | this->safe_call = SafeCall; |
| 221 | this->cpp_call = nullptr; |
| 222 | } |
| 223 | |
| 224 | ~ExternCFunctionObjImpl() { |
| 225 | if (deleter_) deleter_(self_); |
nothing calls this directly
no outgoing calls
no test coverage detected