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

Function ObjectToString

source/script2.cpp:11486–11500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11484
11485
11486void ObjectToString(ResultToken &aResultToken, ExprTokenType &aThisToken, IObject *aObject)
11487{
11488 // Something like this should be done for every TokenToString() call or
11489 // equivalent, but major changes are needed before that will be feasible.
11490 // For now, String(anytype) provides a limited workaround.
11491 switch (aObject->Invoke(aResultToken, IT_CALL, _T("ToString"), aThisToken, nullptr, 0))
11492 {
11493 case INVOKE_NOT_HANDLED:
11494 aResultToken.UnknownMemberError(aThisToken, IT_CALL, _T("ToString"));
11495 break;
11496 case FAIL:
11497 aResultToken.SetExitResult(FAIL);
11498 break;
11499 }
11500}
11501
11502BIF_DECL(BIF_StrCompare)
11503{

Callers 1

BIF_DECLFunction · 0.85

Calls 3

UnknownMemberErrorMethod · 0.80
SetExitResultMethod · 0.80
InvokeMethod · 0.45

Tested by

no test coverage detected