mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
693 B
16 lines
693 B
define: DUK_USE_DEBUG_WRITE
|
|
introduced: 2.0.0
|
|
default: false
|
|
tags:
|
|
- debug
|
|
description: >
|
|
Macro used for Duktape debug log writes (when DUK_USE_DEBUG is enabled).
|
|
There's no default provider to avoid a dependency on platform I/O calls.
|
|
The macro is called like a function with the following prototype:
|
|
"void DUK_USE_DEBUG_WRITE(long level, const char *file, long line, const char *func, const char *msg)".
|
|
The "file", "func", and "msg" arguments are non-NULL strings, though NULLs
|
|
should be handled as good practice (it's ultimately up to duk_config.h
|
|
whether NULL values are possible).
|
|
|
|
See http://wiki.duktape.org/HowtoDebugPrints.html for more information
|
|
and examples.
|
|
|