Skip to content

Commit b91b2a7

Browse files
committed
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 <[email protected]>
1 parent 9a4be7d commit b91b2a7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

py/mpstate.h

-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ extern mp_state_ctx_t mp_state_ctx;
310310
#define MP_STATE_MAIN_THREAD(x) (mp_state_ctx.thread.x)
311311

312312
#if MICROPY_PY_THREAD
313-
extern mp_state_thread_t *mp_thread_get_state(void);
314313
#define MP_STATE_THREAD(x) (mp_thread_get_state()->x)
315314
#define mp_thread_is_main_thread() (mp_thread_get_state() == &mp_state_ctx.thread)
316315
#else

0 commit comments

Comments
 (0)