Update contrib.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Inline function definitions for general utility functions which are used by all KMS test code.
32 inline T TAnyPtrToFuncPtr(TAny* aPtr)
34 ISO C++ doesn't allow converting directly between object and
35 function pointers, so this function goes via an integer.
37 @param aPtr Object pointer to convert to a (static) function pointer.
38 @return Function pointer, where the exact type of the function is
39 described by the T template parameter.
42 TUint32 funcAsInt = reinterpret_cast<TUint32>(aPtr);
43 return reinterpret_cast<T>(funcAsInt);