prelude.hpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // Copyright 2014 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. // src/mongocxx/config/compiler.hpp
  15. #pragma push_macro("MONGOCXX_INLINE")
  16. #undef MONGOCXX_INLINE
  17. #pragma push_macro("MONGOCXX_CALL")
  18. #undef MONGOCXX_CALL
  19. // src/mongocxx/config/config.hpp.in
  20. #pragma push_macro("MONGOCXX_INLINE_NAMESPACE_BEGIN")
  21. #undef MONGOCXX_INLINE_NAMESPACE_BEGIN
  22. #pragma push_macro("MONGOCXX_INLINE_NAMESPACE_END")
  23. #undef MONGOCXX_INLINE_NAMESPACE_END
  24. // src/mongocxx/config/version.hpp.in
  25. #pragma push_macro("MONGOCXX_VERSION_STRING")
  26. #undef MONGOCXX_VERSION_STRING
  27. #pragma push_macro("MONGOCXX_VERSION_EXTRA")
  28. #undef MONGOCXX_VERSION_EXTRA
  29. #pragma push_macro("MONGOCXX_VERSION_MAJOR")
  30. #undef MONGOCXX_VERSION_MAJOR
  31. #pragma push_macro("MONGOCXX_VERSION_MINOR")
  32. #undef MONGOCXX_VERSION_MINOR
  33. #pragma push_macro("MONGOCXX_VERSION_PATCH")
  34. #undef MONGOCXX_VERSION_PATCH
  35. // export.hpp (generated by cmake)
  36. #pragma push_macro("MONGOCXX_API_H")
  37. #undef MONGOCXX_API_H
  38. #pragma push_macro("MONGOCXX_API")
  39. #undef MONGOCXX_API
  40. #pragma push_macro("MONGOCXX_PRIVATE")
  41. #undef MONGOCXX_PRIVATE
  42. #pragma push_macro("MONGOCXX_DEPRECATED")
  43. #undef MONGOCXX_DEPRECATED
  44. #pragma push_macro("MONGOCXX_DEPRECATED_EXPORT")
  45. #undef MONGOCXX_DEPRECATED_EXPORT
  46. #pragma push_macro("MONGOCXX_DEPRECATED_NO_EXPORT")
  47. #undef MONGOCXX_DEPRECATED_NO_EXPORT
  48. #pragma push_macro("DEFINE_NO_DEPRECATED")
  49. #undef DEFINE_NO_DEPRECATED
  50. #pragma push_macro("MONGOCXX_NO_DEPRECATED")
  51. #undef MONGOCXX_NO_DEPRECATED
  52. #include <mongocxx/config/compiler.hpp>
  53. #include <mongocxx/config/config.hpp>
  54. #include <mongocxx/config/export.hpp>
  55. #include <mongocxx/config/version.hpp>
  56. // TODO: Find a way to DRY this with BSONCXX_UNREACHABLE
  57. #pragma push_macro("MONGOCXX_UNREACHABLE")
  58. #undef MONGOCXX_UNREACHABLE
  59. #define MONGOCXX_UNREACHABLE std::abort()