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

Method DeleteProp

source/script_object.cpp:1126–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1124//
1125
1126ResultType Object::DeleteProp(ResultToken &aResultToken, int aID, int aFlags, ExprTokenType *aParam[], int aParamCount)
1127{
1128 auto field = FindField(ParamIndexToString(0, _f_number_buf));
1129 if (!field)
1130 _o_return_empty;
1131 field->ReturnMove(aResultToken); // Return the removed value.
1132 mFields.Remove((index_t)(field - mFields), 1);
1133 return OK;
1134}
1135
1136ResultType Map::Delete(ResultToken &aResultToken, int aID, int aFlags, ExprTokenType *aParam[], int aParamCount)
1137{

Callers 1

DefineClassMethod · 0.80

Calls 1

ReturnMoveMethod · 0.80

Tested by

no test coverage detected