Checks that the model handle is not null. As this should never be the case throws internal error.
| 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) { |
| 34 | return CheckNotNull(env, handle, "Internal error - null handle encountered"); |
| 35 | } |
| 36 | |
| 37 | // Checks that the return status of C API is true, returns error in JS exception otherwise. |
| 38 | inline bool CheckStatus(Napi::Env& env, bool status) { |
no test coverage detected