1 2 3 4 5 6 7 8
#include "ultra64.h" OSPri osGetThreadPri(OSThread* t) { if (t == NULL) { t = __osRunningThread; } return t->priority; }