Skip to content

Commit c5a419b

Browse files
authored
Merge pull request #3163 from pygame-community/timer_wasm_fence
wasm: better wasm fencing
2 parents 7f18a37 + 5b49efb commit c5a419b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ time_set_timer(PyObject *self, PyObject *args, PyObject *kwargs)
402402

403403
/* do not allow set_timer to work on WASM for now... this needs some more
404404
* testing and fixes that are WIP on other PRs */
405-
#ifdef __EMSCRIPTEN__
405+
#if defined(__EMSCRIPTEN__) || defined(__wasi__)
406406
return RAISE(PyExc_NotImplementedError,
407407
"set_timer is not implemented on WASM yet");
408408
#endif

0 commit comments

Comments
 (0)