1 // Copyright 2023 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CORE_FXCRT_UNOWNED_PTR_EXCLUSION_H_ 6 #define CORE_FXCRT_UNOWNED_PTR_EXCLUSION_H_ 7 8 #include "build/build_config.h" 9 10 #if defined(PDF_ENABLE_UNOWNED_PTR_EXCLUSION) 11 // TODO(tsepez): convert to PA copy of this code. 12 #define UNOWNED_PTR_EXCLUSION __attribute__((annotate("raw_ptr_exclusion"))) 13 #else 14 #define UNOWNED_PTR_EXCLUSION 15 #endif 16 17 #endif // CORE_FXCRT_UNOWNED_PTR_EXCLUSION_H_ 18