Baselib_DynamicLibrary.h 887 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "../C/Baselib_DynamicLibrary.h"
  3. // alias for Baselib_DynamicLibrary_OpenUtf8
  4. static inline Baselib_DynamicLibrary_Handle Baselib_DynamicLibrary_Open(
  5. const char* pathnameUtf8,
  6. Baselib_ErrorState* errorState
  7. )
  8. {
  9. return Baselib_DynamicLibrary_OpenUtf8(pathnameUtf8, errorState);
  10. }
  11. // alias for Baselib_DynamicLibrary_OpenUtf16
  12. static inline Baselib_DynamicLibrary_Handle Baselib_DynamicLibrary_Open(
  13. const baselib_char16_t* pathnameUtf16,
  14. Baselib_ErrorState* errorState
  15. )
  16. {
  17. return Baselib_DynamicLibrary_OpenUtf16(pathnameUtf16, errorState);
  18. }
  19. static inline bool operator==(const Baselib_DynamicLibrary_Handle& a, const Baselib_DynamicLibrary_Handle& b)
  20. {
  21. return a.handle == b.handle;
  22. }
  23. static inline bool operator!=(const Baselib_DynamicLibrary_Handle& a, const Baselib_DynamicLibrary_Handle& b)
  24. {
  25. return a.handle != b.handle;
  26. }