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

Function addRef

include/daScript/misc/smart_ptr.h:385–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 DAS_SMART_PTR_DELETE
384 }
385 __forceinline void addRef() {
386 DAS_TRACK_SMART_PTR_ID
387 ref_count ++;
388 if ( ref_count==0 || magic!=0x1ee7c0de ) {
389 DAS_FATAL_ERROR("%p ref_count=%i, magic=%08x, object was deleted or corrupted", (void *)this, ref_count, magic);
390 }
391 }
392 __forceinline bool delRef() {
393 DAS_TRACK_SMART_PTR_ID
394 if ( ref_count==0 || magic!=0x1ee7c0de ) {

Callers 3

smart_ptrClass · 0.70
initMethod · 0.70
addRefMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected