MCPcopy Create free account
hub / github.com/Vector35/debugger / API_OBJECT_STATIC

Function API_OBJECT_STATIC

core/ffi.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// Macro-like function to convert an non-referenced object to the external API reference
26template <typename T>
27static auto* API_OBJECT_STATIC(T* obj)
28{
29 if (obj == nullptr)
30 return nullptr;
31 return obj->GetAPIObject();
32}
33
34template <typename T>
35static auto* API_OBJECT_STATIC(const BinaryNinja::Ref<T>& obj)

Callers 1

Calls 2

AddRefMethod · 0.45
GetObjectMethod · 0.45

Tested by

no test coverage detected