access-specifiers.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2014-2020, The University of Memphis
4  *
5  * This file is part of PSync.
6  * See AUTHORS.md for complete list of PSync authors and contributors.
7  *
8  * PSync is free software: you can redistribute it and/or modify it under the terms
9  * of the GNU Lesser General Public License as published by the Free Software Foundation,
10  * either version 3 of the License, or (at your option) any later version.
11  *
12  * PSync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  * PURPOSE. See the GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License along with
17  * PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>
18  *
19  **/
20 
21 #ifndef PSYNC_DETAIL_ACCESS_SPECIFIERS_HPP
22 #define PSYNC_DETAIL_ACCESS_SPECIFIERS_HPP
23 
24 #include "PSync/detail/config.hpp"
25 
26 #ifdef PSYNC_WITH_TESTS
27 #define PSYNC_VIRTUAL_WITH_TESTS virtual
28 #define PSYNC_PUBLIC_WITH_TESTS_ELSE_PROTECTED public
29 #define PSYNC_PUBLIC_WITH_TESTS_ELSE_PRIVATE public
30 #define PSYNC_PROTECTED_WITH_TESTS_ELSE_PRIVATE protected
31 #else
32 #define PSYNC_VIRTUAL_WITH_TESTS
33 #define PSYNC_PUBLIC_WITH_TESTS_ELSE_PROTECTED protected
34 #define PSYNC_PUBLIC_WITH_TESTS_ELSE_PRIVATE private
35 #define PSYNC_PROTECTED_WITH_TESTS_ELSE_PRIVATE private
36 #endif
37 
38 #endif // PSYNC_DETAIL_ACCESS_SPECIFIERS_HPP