Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-08-28 08:11:44

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 /// This file defines macros that can be used to ignore diagnostics in clang and
0012 /// gcc.
0013 
0014 #define _ACTS_DO_PRAGMA(x) _Pragma(#x)
0015 
0016 #if defined(__clang__)
0017 
0018 #define ACTS_DIAGNOSTIC_PUSH() _ACTS_DO_PRAGMA(clang diagnostic push)
0019 
0020 #define ACTS_DIAGNOSTIC_IGNORE(diag) \
0021   _ACTS_DO_PRAGMA(clang diagnostic ignored diag)
0022 
0023 #define ACTS_DIAGNOSTIC_POP() _ACTS_DO_PRAGMA(clang diagnostic pop)
0024 
0025 #elif defined(__GNUC__)
0026 
0027 #define ACTS_DIAGNOSTIC_PUSH() _ACTS_DO_PRAGMA(GCC diagnostic push)
0028 
0029 #define ACTS_DIAGNOSTIC_IGNORE(diag) \
0030   _ACTS_DO_PRAGMA(GCC diagnostic ignored diag)
0031 
0032 #define ACTS_DIAGNOSTIC_POP() _ACTS_DO_PRAGMA(GCC diagnostic pop)
0033 
0034 #endif