lafagnosticuifoundation/graphicseffects/ClientInc/GfxTransUtils.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __GFXTRANS_UTILS_H__
       
    17 #define __GFXTRANS_UTILS_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 //#include "debugprint.h"
       
    21 /** 
       
    22 panic with the GFXTRANS identifier
       
    23 @internalComponent
       
    24 */
       
    25 void Panic(const TInt aCode);
       
    26 
       
    27 
       
    28 /** 
       
    29 Tests whether the value is a 'legal' array index.  This is not a bounds check!
       
    30 It does allow functions to return error values (such as KErrNotFound) rather than
       
    31 array indices, and the easy clean testing of these.
       
    32 @internalComponent
       
    33 */
       
    34 inline bool IsValidIndex(const TInt aIndex)
       
    35 	{
       
    36 	return (0 <= aIndex);
       
    37 	}
       
    38 
       
    39 #endif // __GFXTRANS_UTILS_H__