gi.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef GI_HPP
  2. #define GI_HPP
  3. #define GI_VERSION_MAJAOR (2)
  4. #define GI_VERSION_MINOR (0)
  5. #define GI_VERSION_MICRO (0)
  6. #ifdef GI_INLINE
  7. #define GI_INLINE_DECL inline
  8. #else
  9. #define GI_INLINE_DECL
  10. #endif
  11. // typically clang might warn but gcc might complain about pragma clang ...
  12. #ifdef GI_CLASS_IMPL_PRAGMA
  13. #ifndef GI_CLASS_IMPL_BEGIN
  14. #define GI_CLASS_IMPL_BEGIN \
  15. _Pragma("GCC diagnostic push") \
  16. _Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"")
  17. #endif
  18. #ifndef GI_CLASS_IMPL_END
  19. #define GI_CLASS_IMPL_END _Pragma("GCC diagnostic pop")
  20. #endif
  21. #else
  22. #define GI_CLASS_IMPL_BEGIN
  23. #define GI_CLASS_IMPL_END
  24. #endif
  25. #include "base.hpp"
  26. #include "container.hpp"
  27. #include "enumflag.hpp"
  28. #include "exception.hpp"
  29. #include "expected.hpp"
  30. #include "object.hpp"
  31. #include "objectclass.hpp"
  32. #include "string.hpp"
  33. // check that include path has been setup properly to include override
  34. #if defined(__has_include)
  35. #if !__has_include(<glib/glib_extra_def.hpp>)
  36. #warning "overrides not found in include path"
  37. #endif
  38. #endif
  39. #endif // GI_HPP