aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gopkg.in/olebedev/go-duktape.v3/duk_console.h
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gopkg.in/olebedev/go-duktape.v3/duk_console.h')
-rwxr-xr-xvendor/gopkg.in/olebedev/go-duktape.v3/duk_console.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/gopkg.in/olebedev/go-duktape.v3/duk_console.h b/vendor/gopkg.in/olebedev/go-duktape.v3/duk_console.h
new file mode 100755
index 000000000..1488a95fa
--- /dev/null
+++ b/vendor/gopkg.in/olebedev/go-duktape.v3/duk_console.h
@@ -0,0 +1,14 @@
+#if !defined(DUK_CONSOLE_H_INCLUDED)
+#define DUK_CONSOLE_H_INCLUDED
+
+#include "duktape.h"
+
+/* Use a proxy wrapper to make undefined methods (console.foo()) no-ops. */
+#define DUK_CONSOLE_PROXY_WRAPPER (1 << 0)
+
+/* Flush output after every call. */
+#define DUK_CONSOLE_FLUSH (1 << 1)
+
+extern void duk_console_init(duk_context *ctx, duk_uint_t flags);
+
+#endif /* DUK_CONSOLE_H_INCLUDED */