1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-27 05:37:42 +00:00

Add ev/call.

This is a common operation, and making fibers manually can be tedious.
This commit is contained in:
Calvin Rose
2020-07-06 19:13:32 -05:00
parent 51cf6465ff
commit cd197e8be3
4 changed files with 34 additions and 25 deletions

View File

@@ -664,7 +664,7 @@ static void check_stream_flag(JanetStream *stream, int flag) {
if (flag == JANET_STREAM_WRITABLE) msg = "writable";
if (flag == JANET_STREAM_ACCEPTABLE) msg = "server";
if (flag == JANET_STREAM_UDPSERVER) msg = "datagram server";
janet_panicf("bad stream - expected %s stream", msg);
janet_panicf("bad stream, expected %s stream", msg);
}
}