mirror of
https://github.com/devkitPro/wut.git
synced 2026-04-22 01:07:32 -05:00
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
16 lines
457 B
C
16 lines
457 B
C
#include "wut_thread_specific.h"
|
|
#include <wut.h>
|
|
#include <coreinit/thread.h>
|
|
|
|
void __attribute__((weak))
|
|
wut_set_thread_specific(__wut_thread_specific_id id, void *value)
|
|
{
|
|
OSSetThreadSpecific(OS_THREAD_SPECIFIC_WUT_RESERVED_0 + id - WUT_THREAD_SPECIFIC_0, value);
|
|
}
|
|
|
|
void *__attribute__((weak))
|
|
wut_get_thread_specific(__wut_thread_specific_id id)
|
|
{
|
|
return OSGetThreadSpecific(OS_THREAD_SPECIFIC_WUT_RESERVED_0 + id - WUT_THREAD_SPECIFIC_0);
|
|
;
|
|
} |