sanitizer_interception.h 788 B

123456789101112131415161718192021222324
  1. //===-- sanitizer_interception.h --------------------------------*- C++ -*-===//
  2. //
  3. // This file is distributed under the University of Illinois Open Source
  4. // License. See LICENSE.TXT for details.
  5. //
  6. //===----------------------------------------------------------------------===//
  7. //
  8. // Common macro definitions for interceptors.
  9. // Always use this headers instead of interception/interception.h.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef SANITIZER_INTERCEPTION_H
  13. #define SANITIZER_INTERCEPTION_H
  14. #include "interception/interception.h"
  15. #include "sanitizer_common.h"
  16. #if SANITIZER_LINUX && !defined(SANITIZER_GO)
  17. #undef REAL
  18. #define REAL(x) IndirectExternCall(__interception::PTR_TO_REAL(x))
  19. #endif
  20. #endif // SANITIZER_INTERCEPTION_H