summaryrefslogtreecommitdiff
path: root/py/mpstate.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-02-29 13:33:51 +1100
committerDamien George <damien@micropython.org>2024-02-29 13:33:51 +1100
commitb91b2a7fe912944b74ff7e7b3e38611ea0fe78ee (patch)
tree7f6b6e7a682129aa6c784389a73ae306955b0296 /py/mpstate.h
parent9a4be7d7b36b55fba5584d0ffb751e6b431324cc (diff)
py/mpstate: Don't declare mp_thread_get_state().
It's instead declared by the include of `py/mpthread.h`. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index 0e0388e41..af55e764f 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -310,7 +310,6 @@ extern mp_state_ctx_t mp_state_ctx;
#define MP_STATE_MAIN_THREAD(x) (mp_state_ctx.thread.x)
#if MICROPY_PY_THREAD
-extern mp_state_thread_t *mp_thread_get_state(void);
#define MP_STATE_THREAD(x) (mp_thread_get_state()->x)
#define mp_thread_is_main_thread() (mp_thread_get_state() == &mp_state_ctx.thread)
#else