Add test support for types and objects creation

* test_support::TypeInfoHolder to create TypeInfo given payload description
* test_support::Object<Payload> to create objects with Payload and to get them from ObjHeader* after checking that their type_info are layout compatible.
* test_support::*Array<Count> to create various arrays with given length and similarly get them from ArrayHeader*.
This commit is contained in:
Alexander Shabalin
2021-03-15 11:25:04 +00:00
committed by Space
parent aff49c76a9
commit f51c85a63f
17 changed files with 1041 additions and 241 deletions
@@ -138,6 +138,7 @@ struct MemoryState;
MemoryState* InitMemory(bool firstRuntime);
void DeinitMemory(MemoryState*, bool destroyRuntime);
void RestoreMemory(MemoryState*);
void ClearMemoryForTests(MemoryState*);
//
// Object allocation.