00001 /******************************************************************** 00002 00003 Copyright 2006, ACCESS Systems Americas, Inc. All rights reserved. 00004 00005 The contents of this file are subject to the Mozilla Public License Version 00006 1.1 (the "License"); you may not use this file except in compliance with 00007 the License. You may obtain a copy of the License at 00008 http://www.mozilla.org/MPL/ 00009 00010 Software distributed under the License is distributed on an "AS IS" basis, 00011 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00012 for the specific language governing rights and limitations under the 00013 License. 00014 00015 The Original Code is the entire contents of this file. 00016 00017 The Initial Developer of the Original Code is ACCESS Systems Americas, Inc. 00018 00019 Portions created by ACCESS Systems Americas, Inc. are Copyright © 2006. All 00020 Rights Reserved. 00021 00022 Contributor(s): none. 00023 00024 ********************************************************************/ 00032 #ifndef _TESTTRACES_H_ 00033 #define _TESTTRACES_H_ 00034 00035 #ifdef __cplusplus 00036 extern "C" { 00037 #endif // __cplusplus 00038 00039 /*------------------------------------------------------*/ 00040 /* file needed to get the ALP_TRACE define */ 00041 #include <hiker/config_defines.h> 00042 00043 /*------------------------------------------------------*/ 00044 /* Uncomment to test trace on or off */ 00045 // #define ALP_TRACE ALP_TRACE_OFF //For testing purpose 00046 00047 /*------------------------------------------------------*/ 00048 /* Required header file to use the traces */ 00049 #include <hiker/traces.h> 00050 00051 /* Define Application Trace Class. */ 00052 #define testTraceClass ALP_TRACE_DEFINE(ALP_CLASS_UNDEFINED, getpid()) 00053 00054 #if BUILD_TYPE == BUILD_TYPE_DEBUG 00055 # define testtracesDbgBeginProc(func) ALP_TM(TL(testTraceClass, "%s: Processing...", #func)); 00056 #else 00057 # define testtracesDbgBeginProc(func) 00058 #endif 00059 00060 #ifdef __cplusplus 00061 } 00062 #endif // __cplusplus 00063 00064 #endif // _TESTTRACES_H_