os/mm/mmlibs/mmfw/src/Client/generic/CompatAids.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef __CompatAids_h
sl@0
    17
#define __CompatAids_h
sl@0
    18
sl@0
    19
// The __PANIC_COMPAT macro is used to determine the action when client code calls an old mediasvr
sl@0
    20
// function that is not supported under the new Multimedia components (MMF/ICL etc). The default
sl@0
    21
// behaviour is to panic on debug mode but "return" KErrNotSupported for release. The macro can
sl@0
    22
// be changed this default.
sl@0
    23
sl@0
    24
#define __PANIC_COMPAT(result) __ASSERT_DEBUG((EFalse),(result))
sl@0
    25
sl@0
    26
// __PANIC_COMPAT_IS_ACTIVE should be defined for what ever scenarios __PANIC_COMPAT might actually
sl@0
    27
// call panic - eg. by default, for debug builds. This allows the Panic() calls of particular sub-modules
sl@0
    28
// to be only defined if they are calls - thus avoiding warnings that would otherwise result.
sl@0
    29
sl@0
    30
#if defined(_DEBUG)
sl@0
    31
#define __PANIC_COMPAT_IS_ACTIVE
sl@0
    32
#endif
sl@0
    33
sl@0
    34
#endif // __CompatAids_h