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

Function ConvertNumGetTarget

source/script2.cpp:12997–13011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12995}
12996
12997void ConvertNumGetTarget(ResultToken &aResultToken, ExprTokenType &target_token, NumGetParams &op)
12998{
12999 if (IObject *obj = TokenToObject(target_token))
13000 {
13001 GetBufferObjectPtr(aResultToken, obj, op.target, op.right_side_bound);
13002 if (aResultToken.Exited())
13003 return;
13004 op.right_side_bound += op.target;
13005 }
13006 else
13007 {
13008 op.target = (size_t)TokenToInt64(target_token);
13009 op.right_side_bound = SIZE_MAX;
13010 }
13011}
13012
13013
13014BIF_DECL(BIF_NumGet)

Callers 1

BIF_DECLFunction · 0.85

Calls 4

TokenToObjectFunction · 0.85
GetBufferObjectPtrFunction · 0.85
TokenToInt64Function · 0.85
ExitedMethod · 0.80

Tested by

no test coverage detected