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

Function SafeSetTokenObject

source/script_com.cpp:571–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569
570
571bool SafeSetTokenObject(ExprTokenType &aToken, IObject *aObject)
572{
573 if (aObject)
574 {
575 aToken.symbol = SYM_OBJECT;
576 aToken.object = aObject;
577 return true;
578 }
579 else
580 {
581 aToken.symbol = SYM_STRING;
582 aToken.marker = _T("");
583 aToken.marker_length = 0;
584 return false;
585 }
586}
587
588
589void VariantToToken(VARIANT &aVar, ResultToken &aToken, bool aRetainVar = true)

Callers 2

VariantToTokenFunction · 0.85
SafeArrayInvokeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected