File tree Expand file tree Collapse file tree 6 files changed +50
-16
lines changed Expand file tree Collapse file tree 6 files changed +50
-16
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2015 MongoDB Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ #define BSONCXX_INLINE inline __attribute__ ((__visibility__(" hidden" ), __always_inline__))
Original file line number Diff line number Diff line change 16
16
#undef BSONCXX_B64_ASSERT
17
17
#pragma pop_macro("BSONCXX_B64_ASSERT")
18
18
19
+ // compiler.hpp
20
+ #undef BSONCXX_INLINE
21
+ #pragma pop_macro("BSONCXX_INLINE")
22
+
19
23
// src/bsoncxx/config/config.hpp.in
20
24
#undef BSONCXX_INLINE_NAMESPACE_BEGIN
21
25
#pragma pop_macro("BSONCXX_INLINE_NAMESPACE_BEGIN")
53
57
#pragma pop_macro("BSONCXX_PRIVATE")
54
58
55
59
// prelude.hpp
56
- #undef BSONCXX_INLINE
57
- #pragma pop_macro("BSONCXX_INLINE")
58
60
#undef BSONCXX_UNREACHABLE
59
61
#pragma pop_macro("BSONCXX_UNREACHABLE")
Original file line number Diff line number Diff line change 16
16
#pragma push_macro("BSONCXX_B64_ASSERT")
17
17
#undef BSONCXX_B64_ASSERT
18
18
19
+ // compiler.hpp
20
+ #pragma push_macro("BSONCXX_INLINE")
21
+ #undef BSONCXX_INLINE
22
+
19
23
// src/bsoncxx/config/config.hpp.in
20
24
#pragma push_macro("BSONCXX_INLINE_NAMESPACE_BEGIN")
21
25
#undef BSONCXX_INLINE_NAMESPACE_BEGIN
52
56
#pragma push_macro("BSONCXX_PRIVATE")
53
57
#undef BSONCXX_PRIVATE
54
58
59
+ #include < bsoncxx/config/compiler.hpp>
55
60
#include < bsoncxx/config/config.hpp>
56
61
#include < bsoncxx/config/version.hpp>
57
62
#include < bsoncxx/export.hpp>
58
63
59
- // TODO to move this to a compiler.hpp header (CXX-733)
60
- #pragma push_macro("BSONCXX_INLINE")
61
- #undef BSONCXX_INLINE
62
- #define BSONCXX_INLINE inline __attribute__ ((__visibility__(" hidden" ), __always_inline__))
63
-
64
64
#pragma push_macro("BSONCXX_UNREACHABLE")
65
65
#undef BSONCXX_UNREACHABLE
66
66
#define BSONCXX_UNREACHABLE std::abort ()
Original file line number Diff line number Diff line change
1
+ // Copyright 2015 MongoDB Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // TODO: DRY this definition with the one from bsoncxx/config/compiler.hpp per discussion
16
+ // here - https://github.com/mongodb/mongo-cxx-driver/pull/374#issuecomment-158179295
17
+ #define MONGOCXX_INLINE inline __attribute__ ((__visibility__(" hidden" ), __always_inline__))
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // src/mongocxx/config/compiler.hpp
16
+ #undef MONGOCXX_INLINE
17
+ #pragma pop_macro("MONGOCXX_INLINE")
18
+
15
19
// src/mongocxx/config/config.hpp.in
16
20
#undef MONGOCXX_INLINE_NAMESPACE_BEGIN
17
21
#pragma pop_macro("MONGOCXX_INLINE_NAMESPACE_BEGIN")
45
49
#pragma pop_macro("MONGOCXX_NO_DEPRECATED")
46
50
#undef MONGOCXX_PRIVATE
47
51
#pragma pop_macro("MONGOCXX_PRIVATE")
48
-
49
- // prelude.hpp
50
- #undef MONGOCXX_INLINE
51
- #pragma pop_macro("MONGOCXX_INLINE")
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // src/mongocxx/config/compiler.hpp
16
+ #pragma push_macro("MONGOCXX_INLINE")
17
+ #undef MONGOCXX_INLINE
18
+
15
19
// src/mongocxx/config/config.hpp.in
16
20
#pragma push_macro("MONGOCXX_INLINE_NAMESPACE_BEGIN")
17
21
#undef MONGOCXX_INLINE_NAMESPACE_BEGIN
46
50
#pragma push_macro("MONGOCXX_PRIVATE")
47
51
#undef MONGOCXX_PRIVATE
48
52
53
+ #include < mongocxx/config/compiler.hpp>
49
54
#include < mongocxx/config/config.hpp>
50
55
#include < mongocxx/config/version.hpp>
51
56
#include < mongocxx/export.hpp>
52
-
53
- // TODO to move this to a compiler.hpp header (CXX-733)
54
- #pragma push_macro("MONGOCXX_INLINE")
55
- #undef MONGOCXX_INLINE
56
- #define MONGOCXX_INLINE inline __attribute__ ((__visibility__(" hidden" ), __always_inline__))
You can’t perform that action at this time.
0 commit comments