Home | History | Annotate | Download | only in include
      1 /*
      2  $License:
      3     Copyright (C) 2011 InvenSense Corporation, All Rights Reserved.
      4  $
      5  */
      6 #ifndef INV_INCLUDE_H__
      7 #define INV_INCLUDE_H__
      8 
      9 #define INVENSENSE_FUNC_START  typedef int invensensePutFunctionCallsHere
     10 
     11 #ifdef COVERAGE
     12 #include "utestCommon.h"
     13 #endif
     14 #ifdef PROFILE
     15 #include "profile.h"
     16 #endif
     17 
     18 #ifdef WIN32
     19 #ifdef COVERAGE
     20 
     21 extern int functionEnterLog(const char *file, const char *func);
     22 extern int functionExitLog(const char *file, const char *func);
     23 
     24 #undef INVENSENSE_FUNC_START
     25 #define INVENSENSE_FUNC_START  __pragma(message(__FILE__ "|"__FUNCTION__ )) \
     26     int dslkQjDsd = functionEnterLog(__FILE__, __FUNCTION__)
     27 #endif // COVERAGE
     28 #endif // WIN32
     29 
     30 #ifdef PROFILE
     31 #undef INVENSENSE_FUNC_START
     32 #define INVENSENSE_FUNC_START int dslkQjDsd = profileEnter(__FILE__, __FUNCTION__)
     33 #define return if ( profileExit(__FILE__, __FUNCTION__) ) return
     34 #endif // PROFILE
     35 
     36 // #define return if ( functionExitLog(__FILE__, __FUNCTION__) ) return
     37 
     38 #endif //INV_INCLUDE_H__
     39