| 284 | } |
| 285 | |
| 286 | Anon_obj *Anon_obj::Add(const String &inName,const Dynamic &inValue,bool inSetThisPointer) |
| 287 | { |
| 288 | // TODO - fixed |
| 289 | if (!mFields.mPtr) |
| 290 | { |
| 291 | mFields = hx::FieldMapCreate(); |
| 292 | HX_OBJ_WB_GET(this, mFields.mPtr); |
| 293 | } |
| 294 | |
| 295 | __string_hash_set(HX_MAP_THIS_ mFields,inName,inValue,true); |
| 296 | if (inSetThisPointer && inValue.GetPtr()) |
| 297 | inValue.GetPtr()->__SetThis(this); |
| 298 | return this; |
| 299 | } |
| 300 | |
| 301 | static int _hx_toString_depth = 0; |
| 302 | String Anon_obj::toString() |
no test coverage detected