ThreadLocalValue-c-api.h 662 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "os/c-api/Error-c-api.h"
  3. #if defined(__cplusplus)
  4. #include "os/ThreadLocalValue.h"
  5. typedef il2cpp::os::ThreadLocalValue UnityPalThreadLocalValue;
  6. #else
  7. typedef struct UnityPalThreadLocalValue UnityPalThreadLocalValue;
  8. #endif
  9. #if defined(__cplusplus)
  10. extern "C"
  11. {
  12. #endif
  13. UnityPalThreadLocalValue* UnityPalThreadLocalValueNew();
  14. void UnityPalThreadLocalValueDelete(UnityPalThreadLocalValue* object);
  15. UnityPalErrorCode UnityPalThreadLocalValueSetValue(UnityPalThreadLocalValue* object, void* value);
  16. UnityPalErrorCode UnityPalThreadLocalValueGetValue(UnityPalThreadLocalValue* object, void** value);
  17. #if defined(__cplusplus)
  18. }
  19. #endif