Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
62
template <class T>
63
static T* API_OBJECT_NEW_REF(T* obj)
64
{
65
if (obj)
66
obj->object->AddRef();
67
return obj;
68
}
69
70
template <class T>
71
static void API_OBJECT_FREE(T* obj)
Callers
nothing calls this directly
Calls
1
AddRef
Method · 0.45
Tested by
no test coverage detected