public static C4View* c4view_open(C4Database *db, C4Slice path, C4Slice viewName, C4Slice version,
C4DatabaseFlags flags, C4EncryptionKey *encryptionKey, C4Error *outError)
{
#if DEBUG
var retVal = _c4view_open(db, path, viewName, version, flags, encryptionKey, outError);
if(retVal != null) {
_AllocatedObjects[(IntPtr)retVal] = "C4View";
#if ENABLE_LOGGING
Console.WriteLine("[c4view_open] Allocated 0x{0}", ((IntPtr)retVal).ToString("X"));
#endif
}
return retVal;
#else
return _c4view_open(db, path, viewName, version, flags, encryptionKey, outError);
#endif
}