| 26 | // Checks if the pointer is not null, throws JS exception otherwise. |
| 27 | template <typename T> |
| 28 | inline bool CheckNotNull(Napi::Env env, T* ptr, const std::string& message) { |
| 29 | return Check(env, ptr != nullptr, message); |
| 30 | } |
| 31 | |
| 32 | // Checks that the model handle is not null. As this should never be the case throws internal error. |
| 33 | inline bool CheckNotNullHandle(Napi::Env env, ModelCalcerHandle* handle) { |
no test coverage detected