暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Baselib.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. // See comments inside header regarding the temporary existence of this header and the corresponding post-include.
  3. #include "Internal/BaselibDeprecatedDefinesPreInclude.h"
  4. #include "Internal/PlatformDetection.h"
  5. #include "Internal/ArchitectureDetection.h"
  6. #include "Internal/PlatformEnvironment.h"
  7. #ifdef BASELIB_INLINE_NAMESPACE
  8. #ifndef __cplusplus
  9. #error "BASELIB_INLINE_NAMESPACE is not available when compiling C code"
  10. #endif
  11. #define BASELIB_CPP_INTERFACE inline namespace BASELIB_INLINE_NAMESPACE
  12. #define BASELIB_C_INTERFACE BASELIB_CPP_INTERFACE
  13. #else
  14. #define BASELIB_CPP_INTERFACE extern "C++"
  15. #define BASELIB_C_INTERFACE extern "C"
  16. #endif
  17. #if defined(BASELIB_USE_DYNAMICLIBRARY)
  18. #define BASELIB_API IMPORTED_SYMBOL
  19. #elif defined(BASELIB_DYNAMICLIBRARY)
  20. #define BASELIB_API EXPORTED_SYMBOL
  21. #else
  22. #define BASELIB_API
  23. #endif
  24. // BASELIB_BINDING_GENERATION is set by the bindings generator and by BindingsExposedInlineImplementations.cpp
  25. // in order to selectively provide symbols bindings can link to for some our our inline implementations.
  26. #ifdef BASELIB_BINDING_GENERATION
  27. #define BASELIB_INLINE_API BASELIB_API
  28. #define BASELIB_FORCEINLINE_API BASELIB_API
  29. #else
  30. #define BASELIB_INLINE_API static inline
  31. #define BASELIB_FORCEINLINE_API static COMPILER_FORCEINLINE
  32. #endif
  33. #include "Internal/BasicTypes.h"
  34. #include "Internal/CoreMacros.h"
  35. #include "Internal/Assert.h"
  36. #include "Internal/BaselibDeprecatedDefinesPostInclude.h"