backupandrestore/backupengine/inc/sbtrace.h
author hgs
Fri, 15 Oct 2010 15:05:57 +0800
changeset 54 4dc88a4ac6f4
parent 49 c20dd21d1eb4
permissions -rw-r--r--
201041_02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
49
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
     1
/**
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
     2
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
     3
* All rights reserved.
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
     8
*
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
     9
* Initial Contributors:
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    11
*
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    12
* Contributors:
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    13
*
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    14
* Description:
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    15
* Main entry point in the process.
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    16
* 
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    17
*
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    18
*/
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    19
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    20
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    21
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    22
/**
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    23
 @file
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    24
*/
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    25
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    26
#ifndef __SBTRACE_H__
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    27
#define __SBTRACE_H__
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    28
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    29
#define LEAVEIFERROR(err, trace) \
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    30
{ \
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    31
TInt munged_err=(err); \
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    32
if (munged_err < 0) \
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    33
{ \
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    34
trace; \
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    35
User::Leave(munged_err);\
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    36
}\
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    37
}
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    38
	
c20dd21d1eb4 201035_05
hgs
parents:
diff changeset
    39
#endif //__SBTRACE_H__