mlinclude.h 977 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #define INVENSENSE_FUNC_START typedef int invensensePutFunctionCallsHere
  9. #ifdef COVERAGE
  10. #include "utestCommon.h"
  11. #endif
  12. #ifdef PROFILE
  13. #include "profile.h"
  14. #endif
  15. #ifdef WIN32
  16. #ifdef COVERAGE
  17. extern int functionEnterLog(const char *file, const char *func);
  18. extern int functionExitLog(const char *file, const char *func);
  19. #undef INVENSENSE_FUNC_START
  20. #define INVENSENSE_FUNC_START __pragma(message(__FILE__ "|"__FUNCTION__ )) \
  21. int dslkQjDsd = functionEnterLog(__FILE__, __FUNCTION__)
  22. #endif // COVERAGE
  23. #endif // WIN32
  24. #ifdef PROFILE
  25. #undef INVENSENSE_FUNC_START
  26. #define INVENSENSE_FUNC_START int dslkQjDsd = profileEnter(__FILE__, __FUNCTION__)
  27. #define return if ( profileExit(__FILE__, __FUNCTION__) ) return
  28. #endif // PROFILE
  29. // #define return if ( functionExitLog(__FILE__, __FUNCTION__) ) return
  30. #endif //INV_INCLUDE_H__