1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-14 04:28:06 +00:00

Expose janet_channel_make and janet_channel_make_threaded

This commit is contained in:
Calvin Rose
2024-08-14 17:34:48 -05:00
parent 7ff545bd2e
commit af2eb06298
5 changed files with 28 additions and 4 deletions

View File

@@ -1450,6 +1450,8 @@ JANET_API int32_t janet_abstract_incref(void *abst);
JANET_API int32_t janet_abstract_decref(void *abst);
/* Expose channel utilities */
JanetChannel *janet_channel_make(uint32_t limit);
JanetChannel *janet_channel_make_threaded(uint32_t limit);
JanetChannel *janet_getchannel(const Janet *argv, int32_t n);
JanetChannel *janet_optchannel(const Janet *argv, int32_t argc, int32_t n, JanetChannel *dflt);
JANET_API int janet_channel_give(JanetChannel *channel, Janet x);