#if DEBUG //#define GC_DEBUG #endif using System; using System.Diagnostics; using IL2CPU.API; using IL2CPU.API.Attribs; namespace Cosmos.Core { /// /// GCImplementation class. Garbage collector. Mostly not implemented. /// /// Most of the class is yet to be implemented. [DebuggerStepThrough] public static class GCImplementation { /// /// Acquire lock. Not implemented. /// /// Thrown always. private static void AcquireLock() { throw new NotImplementedException(); } /// /// Release lock. Not implemented. /// /// Thrown always. private static void ReleaseLock() { throw new NotImplementedException(); } /// /// Alloc new object. Plugged. /// [PlugMethod(PlugRequired = true)] public static uint AllocNewObject(uint aSize) { throw new NotImplementedException(); } /// /// Increase reference count of an given object. Plugged. /// /// An object to increase to reference count of. /// Thrown on fatal error, contact support. public static unsafe void IncRefCount(uint aObject) { throw new NotImplementedException(); } /// /// Decrease reference count of an given object. Plugged. /// /// An object to decrease to reference count of. /// Thrown on fatal error, contact support. public static unsafe void DecRefCount(uint aObject) { throw new NotImplementedException(); } } }