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

Method addRef

include/daScript/misc/smart_ptr.h:258–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 addRef();
257 }
258 __forceinline void addRef() {
259 if ( ptr ) TP::addRef(ptr);
260 }
261 __forceinline void delRef() {
262 if ( ptr && TP::delRef(ptr) ) ptr = nullptr;
263 }

Callers 4

computeMethod · 0.45
makeMethod · 0.45
jit_newMethod · 0.45
addRefMethod · 0.45

Calls 1

addRefFunction · 0.70

Tested by

no test coverage detected