Browse Source

Add DUK_CONSOLE_FLUSH to 'duk'

pull/1588/head
Sami Vaarala 7 years ago
parent
commit
ca0a154f5a
  1. 2
      examples/cmdline/duk_cmdline.c

2
examples/cmdline/duk_cmdline.c

@ -1161,7 +1161,7 @@ static duk_context *create_duktape_heap(int alloc_provider, int debugger, int aj
/* Register console object. */ /* Register console object. */
#if defined(DUK_CMDLINE_CONSOLE_SUPPORT) #if defined(DUK_CMDLINE_CONSOLE_SUPPORT)
duk_console_init(ctx, DUK_CONSOLE_PROXY_WRAPPER /*flags*/); duk_console_init(ctx, DUK_CONSOLE_PROXY_WRAPPER | DUK_CONSOLE_FLUSH /*flags*/);
#endif #endif
/* Register Duktape.Logger (removed in Duktape 2.x). */ /* Register Duktape.Logger (removed in Duktape 2.x). */

Loading…
Cancel
Save