forked from focus-creative-games/il2cpp_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThreadLocalValue.cpp
More file actions
34 lines (27 loc) · 786 Bytes
/
ThreadLocalValue.cpp
File metadata and controls
34 lines (27 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "il2cpp-config.h"
#if !RUNTIME_TINY
#include "os/c-api/ThreadLocalValue-c-api.h"
#include "os/ThreadLocalValue.h"
extern "C"
{
UnityPalThreadLocalValue* UnityPalThreadLocalValueNew()
{
return new il2cpp::os::ThreadLocalValue();
}
void UnityPalThreadLocalValueDelete(UnityPalThreadLocalValue* object)
{
IL2CPP_ASSERT(object);
delete object;
}
UnityPalErrorCode UnityPalThreadLocalValueSetValue(UnityPalThreadLocalValue* object, void* value)
{
IL2CPP_ASSERT(object);
return object->SetValue(value);
}
UnityPalErrorCode UnityPalThreadLocalValueGetValue(UnityPalThreadLocalValue* object, void** value)
{
IL2CPP_ASSERT(object);
return object->GetValue(value);
}
}
#endif