MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / SetBase

Method SetBase

source/script_object.h:434–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 bool CanSetBase(Object *aNewBase);
433 ResultType SetBase(Object *aNewBase, ResultToken &aResultToken);
434 void SetBase(Object *aNewBase)
435 {
436 if (aNewBase)
437 aNewBase->AddRef();
438 if (mBase)
439 mBase->Release();
440 mBase = aNewBase;
441 }
442
443 bool IsClassPrototype() { return mFlags & ClassPrototype; }
444 bool IsNativeClassPrototype() { return mFlags & NativeClassPrototype; }

Callers

nothing calls this directly

Calls 2

AddRefMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected