[PR67828] don't unswitch on default defs of non-parms
[official-gcc.git] / libsanitizer / sanitizer_common / sanitizer_interception.h
blob2346fa859b10140be379d196f7a8a7022d7efaa0
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.
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)
19 #undef REAL
20 #define REAL(x) IndirectExternCall(__interception::PTR_TO_REAL(x))
21 #endif
23 #endif // SANITIZER_INTERCEPTION_H