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