public void Foreign() { vm.EnsureSlots(1); vm.SetSlotNull(0); vm.SetSlotNewForeign(0, this); Assert.AreEqual(this, vm.GetSlotForeign <Slots>(0)); Assert.AreEqual(WrenType.Foreign, vm.GetSlotType(0)); }
private static void alloc(WrenVM vm) { Console.WriteLine("Allocator called!"); vm.SetSlotNewForeign(0, 1); }