sl@0: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __CompatAids_h sl@0: #define __CompatAids_h sl@0: sl@0: // The __PANIC_COMPAT macro is used to determine the action when client code calls an old mediasvr sl@0: // function that is not supported under the new Multimedia components (MMF/ICL etc). The default sl@0: // behaviour is to panic on debug mode but "return" KErrNotSupported for release. The macro can sl@0: // be changed this default. sl@0: sl@0: #define __PANIC_COMPAT(result) __ASSERT_DEBUG((EFalse),(result)) sl@0: sl@0: // __PANIC_COMPAT_IS_ACTIVE should be defined for what ever scenarios __PANIC_COMPAT might actually sl@0: // call panic - eg. by default, for debug builds. This allows the Panic() calls of particular sub-modules sl@0: // to be only defined if they are calls - thus avoiding warnings that would otherwise result. sl@0: sl@0: #if defined(_DEBUG) sl@0: #define __PANIC_COMPAT_IS_ACTIVE sl@0: #endif sl@0: sl@0: #endif // __CompatAids_h