Skip to content

Commit

Permalink
py/mpstate: Don't declare mp_thread_get_state().
Browse files Browse the repository at this point in the history
It's instead declared by the include of `py/mpthread.h`.

Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Feb 29, 2024
1 parent 9a4be7d commit b91b2a7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion py/mpstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b91b2a7

Please sign in to comment.