MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / init

Method init

include/daScript/misc/smart_ptr.h:254–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 return *this;
253 }
254 __forceinline void init ( T * p = nullptr ) {
255 ptr = p;
256 addRef();
257 }
258 __forceinline void addRef() {
259 if ( ptr ) TP::addRef(ptr);
260 }

Callers

nothing calls this directly

Calls 1

addRefFunction · 0.70

Tested by

no test coverage detected