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

Method DebugWriteProperty

source/script_com.cpp:1820–1856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1818}
1819
1820void ComObject::DebugWriteProperty(IDebugProperties *aDebugger, int aPage, int aPageSize, int aDepth)
1821{
1822 DebugCookie rootCookie;
1823 aDebugger->BeginProperty(NULL, "object", 2 + (mVarType == VT_DISPATCH)*2 + (mEventSink != NULL), rootCookie);
1824 if (aPage == 0)
1825 {
1826 // For simplicity, assume they all fit within aPageSize.
1827
1828 aDebugger->WriteProperty("Value", ExprTokenType(mVal64));
1829 aDebugger->WriteProperty("VarType", ExprTokenType((__int64)mVarType));
1830
1831 if (mVarType == VT_DISPATCH)
1832 {
1833 WriteComObjType(aDebugger, this, "DispatchType", _T("Name"));
1834 WriteComObjType(aDebugger, this, "DispatchIID", _T("IID"));
1835 }
1836
1837 if (mEventSink)
1838 {
1839 DebugCookie sinkCookie;
1840 aDebugger->BeginProperty("EventSink", "object", 2, sinkCookie);
1841
1842 if (mEventSink->mAhkObject)
1843 aDebugger->WriteProperty("Object", ExprTokenType(mEventSink->mAhkObject));
1844 else
1845 aDebugger->WriteProperty("Prefix", ExprTokenType(mEventSink->mPrefix));
1846
1847 OLECHAR buf[40];
1848 if (!StringFromGUID2(mEventSink->mIID, buf, _countof(buf)))
1849 *buf = 0;
1850 aDebugger->WriteProperty("IID", ExprTokenType((LPTSTR)(LPCTSTR)CStringTCharFromWCharIfNeeded(buf)));
1851
1852 aDebugger->EndProperty(sinkCookie);
1853 }
1854 }
1855 aDebugger->EndProperty(rootCookie);
1856}
1857
1858#endif

Callers

nothing calls this directly

Calls 5

ExprTokenTypeClass · 0.85
WriteComObjTypeFunction · 0.85
BeginPropertyMethod · 0.80
WritePropertyMethod · 0.80
EndPropertyMethod · 0.80

Tested by

no test coverage detected