Browse Source

Fix detached_cb ctx arg in trans-dvalue example

pull/853/head
Sami Vaarala 8 years ago
parent
commit
a0e8007b3e
  1. 4
      examples/debug-trans-dvalue/duk_trans_dvalue.c

4
examples/debug-trans-dvalue/duk_trans_dvalue.c

@ -1227,9 +1227,11 @@ void duk_trans_dvalue_write_flush_cb(void *udata) {
duk__trans_call_cooperate(ctx, 0); duk__trans_call_cooperate(ctx, 0);
} }
void duk_trans_dvalue_detached_cb(void *udata) { void duk_trans_dvalue_detached_cb(duk_context *duk_ctx, void *udata) {
duk_trans_dvalue_ctx *ctx = (duk_trans_dvalue_ctx *) udata; duk_trans_dvalue_ctx *ctx = (duk_trans_dvalue_ctx *) udata;
(void) duk_ctx;
#if defined(DEBUG_PRINTS) #if defined(DEBUG_PRINTS)
fprintf(stderr, "%s: %p\n", __func__, udata); fprintf(stderr, "%s: %p\n", __func__, udata);
fflush(stderr); fflush(stderr);

Loading…
Cancel
Save