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

Function SetObjectIntProperty

source/script2.cpp:8967–8980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8965}
8966
8967ResultType SetObjectIntProperty(IObject *aObject, LPTSTR aPropName, __int64 aValue, ResultToken &aResultToken)
8968{
8969 FuncResult result_token;
8970 ExprTokenType this_token = aObject, value_token = aValue, *param = &value_token;
8971
8972 auto result = aObject->Invoke(result_token, IT_SET, aPropName, this_token, &param, 1);
8973
8974 result_token.Free();
8975 if (result == FAIL || result == EARLY_EXIT)
8976 return aResultToken.SetExitResult(result);
8977 if (result == INVOKE_NOT_HANDLED)
8978 return aResultToken.UnknownMemberError(ExprTokenType(aObject), IT_GET, aPropName);
8979 return OK;
8980}
8981
8982ResultType GetObjectPtrProperty(IObject *aObject, LPTSTR aPropName, UINT_PTR &aPtr, ResultToken &aResultToken, bool aOptional)
8983{

Callers 1

BIF_DECLFunction · 0.85

Calls 5

ExprTokenTypeClass · 0.85
SetExitResultMethod · 0.80
UnknownMemberErrorMethod · 0.80
InvokeMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected