perfsrv/analyzetool/dynamicmemoryhook/inc/analyzetoolpanics.pan
changeset 51 98307c651589
equal deleted inserted replaced
42:0ff24a8f6ca2 51:98307c651589
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Panic codes and definition of a panic function for the Memory Hook
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ANALYZETOOLPANICS_PAN_H
       
    20 #define ANALYZETOOLPANICS_PAN_H
       
    21 
       
    22 _LIT( KAnalyzeToolName, "AnalyzeTool" );
       
    23 
       
    24 /** AnalyzeTool application panic codes */
       
    25 enum TAnalyzeToolPanics
       
    26     {
       
    27     ENoMemory = 1,
       
    28     EFailedToCreateHeap,
       
    29     ECantOpenHandle,
       
    30     ECantLoadDevice,
       
    31     ECantAppendToTheArray,
       
    32     ECantFindRightThread,
       
    33     ECantCreateMutex,
       
    34     ECantLoadDeviceDriver,
       
    35     ECantConnectDeviceDriver
       
    36     // add further panics here
       
    37     };
       
    38 
       
    39 inline void AssertPanic(TAnalyzeToolPanics aReason)
       
    40     {
       
    41     User::Panic( KAnalyzeToolName, aReason );
       
    42     }
       
    43 
       
    44 #endif // ANALYZETOOLPANICS_PAN_H