duk_console.h 398 B

123456789101112131415
  1. #if !defined(DUK_CONSOLE_H_INCLUDED)
  2. #define DUK_CONSOLE_H_INCLUDED
  3. #include "duktape.h"
  4. /* Use a proxy wrapper to make undefined methods (console.foo()) no-ops. */
  5. #define DUK_CONSOLE_PROXY_WRAPPER (1 << 0)
  6. /* Flush output after every call. */
  7. #define DUK_CONSOLE_FLUSH (1 << 1)
  8. extern void duk_console_init(duk_context *ctx, duk_uint_t flags);
  9. #endif /* DUK_CONSOLE_H_INCLUDED */