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

Function API_OBJECT_NEW_REF

core/ffi.cpp:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62template <class T>
63static T* API_OBJECT_NEW_REF(T* obj)
64{
65 if (obj)
66 obj->object->AddRef();
67 return obj;
68}
69
70template <class T>
71static void API_OBJECT_FREE(T* obj)

Callers

nothing calls this directly

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected