MCPcopy Create free account
hub / github.com/catboost/catboost / CheckNotNull

Function CheckNotNull

catboost/node-package/src/api_helpers.h:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26// Checks if the pointer is not null, throws JS exception otherwise.
27template <typename T>
28inline 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.
33inline bool CheckNotNullHandle(Napi::Env env, ModelCalcerHandle* handle) {

Callers 2

CheckNotNullHandleFunction · 0.70
CheckStatusFunction · 0.70

Calls 1

CheckFunction · 0.70

Tested by

no test coverage detected