fix sendmessage

This commit is contained in:
2026-02-25 15:26:20 -06:00
parent 327b990442
commit bb7997a751
2 changed files with 5 additions and 6 deletions

View File

@@ -1152,17 +1152,16 @@ JSValue CELL_USE_NAME(JSContext *js) { \
JSValue CELL_USE_NAME(JSContext *js) { do { c ; } while(0); }
/* ============================================================
WOTA Message Sending — C modules can send messages to actors
without needing a JSContext.
WOTA Message Sending — C modules can send messages to actors.
============================================================ */
/* Check whether an actor with the given ID exists. */
int JS_ActorExists(const char *actor_id);
/* Send a WOTA-encoded message to an actor by ID.
/* Send a WOTA-encoded message to the actor that owns ctx.
Takes ownership of wb's data on success (caller must not free).
On failure returns an error string; caller must free wb. */
const char *JS_SendMessage(const char *actor_id, WotaBuffer *wb);
const char *JS_SendMessage(JSContext *ctx, WotaBuffer *wb);
#undef js_unlikely
#undef inline