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

Method CreatePrototype

source/script_object.cpp:1012–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010
1011
1012Object *Object::CreatePrototype(LPTSTR aClassName, Object *aBase)
1013{
1014 auto obj = new Object();
1015 obj->mFlags |= ClassPrototype;
1016 obj->SetOwnProp(_T("__Class"), ExprTokenType(aClassName));
1017 obj->SetBase(aBase);
1018 return obj;
1019}
1020
1021
1022Object *Object::CreatePrototype(LPTSTR aClassName, Object *aBase, ObjectMember aMember[], int aMemberCount)

Callers

nothing calls this directly

Calls 3

ExprTokenTypeClass · 0.85
SetOwnPropMethod · 0.80
SetBaseMethod · 0.45

Tested by

no test coverage detected