| 785 | #endif |
| 786 | |
| 787 | Array<ScriptingObject*, HeapAllocation> Scripting::GetObjects() |
| 788 | { |
| 789 | Array<ScriptingObject*> objects; |
| 790 | _objectsLocker.Lock(); |
| 791 | #if USE_OBJECTS_DISPOSE_CRASHES_DEBUGGING |
| 792 | for (const auto& e : _objectsDictionary) |
| 793 | objects.Add(e.Value.Ptr); |
| 794 | #else |
| 795 | _objectsDictionary.GetValues(objects); |
| 796 | #endif |
| 797 | _objectsLocker.Unlock(); |
| 798 | return objects; |
| 799 | } |
| 800 | |
| 801 | MClass* Scripting::FindClass(const StringAnsiView& fullname) |
| 802 | { |