os/graphics/fbs/fontandbitmapserver/sfbs/fbstrace.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2010 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 #ifndef FBSTRACE_H_
    16 #define FBSTRACE_H_
    17 
    18 #ifdef  GRAPHICS_TRACE
    19 #  define FBS_OST(x) GRAPHICS_TRACE(x)
    20 #  define FBS_OST_IF(arg, x) if(arg){GRAPHICS_TRACE(x)}
    21 #else
    22 #  ifdef _DEBUG
    23 #    define FBS_OST(x) x
    24 #    define FBS_OST_IF(arg, x) if(arg){FBS_OST(x)}
    25 #  else
    26 #    define FBS_OST(x)
    27 #    define FBS_OST_IF(arg, x)
    28 #  endif
    29 #endif
    30 
    31 #ifdef FBS_VERBOSE
    32 #  define FBS_OST_VERBOSE(x) FBS_OST(x)
    33 #  define FBS_OST_VERBOSE_IF(arg, x) FBS_OST_IF(arg, x)
    34 #else
    35 #  define FBS_OST_VERBOSE(x)
    36 #  define FBS_OST_VERBOSE_IF(arg, x)
    37 #endif
    38 
    39 #endif /* FBSTRACE_H_ */