MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / expect_non_null

Function expect_non_null

include/win/boost/python/errors.hpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41template <class T>
42inline T* expect_non_null(T* x)
43{
44 if (x == 0)
45 throw_error_already_set();
46 return x;
47}
48
49// Return source if it is an instance of pytype; throw an appropriate
50// exception otherwise.

Callers 3

objectMethod · 0.85
manage_ptrFunction · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected