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