CBForest.Native.c4enum_free C# (CSharp) Method

c4enum_free() public static method

public static c4enum_free ( C4DocEnumerator e ) : void
e C4DocEnumerator
return void
        public static void c4enum_free(C4DocEnumerator *e)
        {
            #if DEBUG
            var ptr = (IntPtr)e;
            #if ENABLE_LOGGING
            if(ptr != IntPtr.Zero && !_AllocatedObjects.ContainsKey(ptr)) {
                Console.WriteLine("WARNING: [c4enum_free] freeing object 0x{0} that was not found in allocated list", ptr.ToString("X"));
            } else {
            #endif
                _AllocatedObjects.Remove(ptr);
            #if ENABLE_LOGGING
            }
            #endif
            #endif
            _c4enum_free(e);
        }
Native