MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __SetField

Method __SetField

src/Dynamic.cpp:170–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 return hx::Object::__Field(inName,inCallProp);
169 }
170 hx::Val __SetField(const String &inName,const hx::Val &inValue, hx::PropertyAccess inCallProp) HXCPP_OVERRIDE
171 {
172 if (HX_FIELD_EQ(inName,"hi") )
173 {
174 mValue = (int)(mValue & 0xffffffff) | (cpp::Int64(inValue.Cast< int >())<<32);
175 return inValue;
176 }
177 if (HX_FIELD_EQ(inName,"lo") )
178 {
179 mValue = (mValue & (cpp::Int64(0xffffffff)<<32) ) | cpp::Int64( (unsigned int)(inValue.Cast< int >()));
180 return inValue;
181 }
182 return hx::Object::__SetField(inName,inValue,inCallProp);
183 }
184
185 int __Compare(const hx::Object *inRHS) const HXCPP_OVERRIDE
186 {

Callers

nothing calls this directly

Calls 1

__SetFieldFunction · 0.50

Tested by

no test coverage detected