You.i Engine
duk_console.h
Go to the documentation of this file.
1 #if !defined(DUK_CONSOLE_H_INCLUDED)
2 #define DUK_CONSOLE_H_INCLUDED
3 
4 #include "duktape.h"
5 
6 /*
7  * Avoid C++ name mangling
8  */
9 #if defined(__cplusplus)
10 extern "C" {
11 #endif
12 
13 /* Use a proxy wrapper to make undefined methods (console.foo()) no-ops. */
14 #define DUK_CONSOLE_PROXY_WRAPPER (1 << 0)
15 
16 /* Flush output after every call. */
17 #define DUK_CONSOLE_FLUSH (1 << 1)
18 
19 extern void duk_console_init(duk_context *ctx, duk_uint_t flags);
20 
21 /*
22  * C++ name mangling
23  */
24 #if defined(__cplusplus)
25 /* end 'extern "C"' wrapper */
26 }
27 #endif
28 
29 #endif /* DUK_CONSOLE_H_INCLUDED */
void duk_console_init(duk_context *ctx, duk_uint_t flags)