1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 01:37:19 +00:00

Fix threaded abstracts in min build.

This commit is contained in:
Calvin Rose 2023-08-19 20:19:05 -05:00
parent 7198dcb416
commit 91712add3d

View File

@ -1246,9 +1246,15 @@ void *janet_unmarshal_abstract(JanetMarshalContext *ctx, size_t size) {
} }
void *janet_unmarshal_abstract_threaded(JanetMarshalContext *ctx, size_t size) { void *janet_unmarshal_abstract_threaded(JanetMarshalContext *ctx, size_t size) {
#ifdef JANET_THREADS
void *p = janet_abstract_threaded(ctx->at, size); void *p = janet_abstract_threaded(ctx->at, size);
janet_unmarshal_abstract_reuse(ctx, p); janet_unmarshal_abstract_reuse(ctx, p);
return p; return p;
#else
(void) ctx;
(void) size;
janet_panic("threaded abstracts not supported");
#endif
} }
static const uint8_t *unmarshal_one_abstract(UnmarshalState *st, const uint8_t *data, Janet *out, int flags) { static const uint8_t *unmarshal_one_abstract(UnmarshalState *st, const uint8_t *data, Janet *out, int flags) {