MCPcopy Create free account
hub / github.com/GNOME/gjs / adopt_nested_ptr

Function adopt_nested_ptr

gi/boxed.cpp:497–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495// vice versa. This could be static for g++, but not for clang++.
496template <class OtherInstance>
497void adopt_nested_ptr(OtherInstance* priv, void* data) {
498 priv->share_ptr(data);
499 priv->debug_lifecycle(
500 "Boxed pointer created, pointing inside memory owned by parent");
501}
502
503/**
504 * BoxedInstance::get_nested_interface_object:

Callers 1

Calls 2

share_ptrMethod · 0.80
debug_lifecycleMethod · 0.45

Tested by

no test coverage detected