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

Method CreateClass

source/script_object.cpp:1003–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001
1002
1003Object *Object::CreateClass(Object *aPrototype)
1004{
1005 auto cls = new Object();
1006 cls->SetBase(sClassPrototype);
1007 cls->SetOwnProp(_T("Prototype"), aPrototype);
1008 return cls;
1009}
1010
1011
1012Object *Object::CreatePrototype(LPTSTR aClassName, Object *aBase)

Callers

nothing calls this directly

Calls 7

SetOwnPropMethod · 0.80
DefineMethodMethod · 0.80
FindOrAddVarMethod · 0.80
AssignSkipAddRefMethod · 0.80
MakeReadOnlyMethod · 0.80
SetBaseMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected