analyzetool/dynamicmemoryhook/inc/analyzetoolpanics.pan
author hgs
Mon, 28 Jun 2010 15:36:07 +0300
changeset 30 86a2e675b80a
parent 20 a71a3e32a2ae
child 49 7fdc9a71d314
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  Panic codes and definition of a panic function for the Memory Hook
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
#ifndef ANALYZETOOLPANICS_PAN_H
hgs
parents:
diff changeset
    20
#define ANALYZETOOLPANICS_PAN_H
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
_LIT( KAnalyzeToolName, "AnalyzeTool" );
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
/** AnalyzeTool application panic codes */
hgs
parents:
diff changeset
    25
enum TAnalyzeToolPanics
hgs
parents:
diff changeset
    26
    {
hgs
parents:
diff changeset
    27
    ENoMemory = 1,
hgs
parents:
diff changeset
    28
    EFailedToCreateHeap,
hgs
parents:
diff changeset
    29
    ECantOpenHandle,
hgs
parents:
diff changeset
    30
    ECantLoadDevice,
hgs
parents:
diff changeset
    31
    ECantAppendToTheArray,
hgs
parents:
diff changeset
    32
    ECantFindRightThread,
hgs
parents:
diff changeset
    33
    ECantConnectStorageServer,
hgs
parents:
diff changeset
    34
    ECantShareStorageServer,
hgs
parents:
diff changeset
    35
    ECantCreateMutex,
hgs
parents:
diff changeset
    36
    ECantLoadDeviceDriver,
hgs
parents:
diff changeset
    37
    ECantConnectDeviceDriver
hgs
parents:
diff changeset
    38
    // add further panics here
hgs
parents:
diff changeset
    39
    };
hgs
parents:
diff changeset
    40
hgs
parents:
diff changeset
    41
inline void AssertPanic(TAnalyzeToolPanics aReason)
hgs
parents:
diff changeset
    42
    {
hgs
parents:
diff changeset
    43
    User::Panic( KAnalyzeToolName, aReason );
hgs
parents:
diff changeset
    44
    }
hgs
parents:
diff changeset
    45
hgs
parents:
diff changeset
    46
#endif // ANALYZETOOLPANICS_PAN_H