public static C4DocEnumerator* c4db_enumerateAllDocs(C4Database *db, C4Slice startDocID, C4Slice endDocID,
C4EnumeratorOptions *options, C4Error *outError)
{
#if DEBUG
var retVal = _c4db_enumerateAllDocs(db, startDocID, endDocID, options, outError);
if(retVal != null) {
_AllocatedObjects[(IntPtr)retVal] = "C4DocEnumerator";
#if ENABLE_LOGGING
Console.WriteLine("[c4db_enumerateAllDocs] Allocated 0x{0}", ((IntPtr)retVal).ToString("X"));
#endif
}
return retVal;
#else
return _c4db_enumerateAllDocs(db, startDocID, endDocID, options, outError);
#endif
}