Shipwright/soh/src/libultra/os/getthreadid.c

10 lines
154 B
C

#include "global.h"
OSId osGetThreadId(OSThread* thread) {
if (thread == NULL) {
thread = __osRunningThread;
}
return thread->id;
}