Add vprintf override for android and esp-idf (#3174)
And update document.
This commit is contained in:
@ -176,7 +176,7 @@ Currently we only profile the memory consumption of module, module_instance and
|
||||
|
||||
#### **Set vprintf callback**
|
||||
- **WAMR_BH_VPRINTF**=<vprintf_callback>, default to disable if not set
|
||||
> Note: if the vprintf_callback function is provided by developer, the os_printf() and os_vprintf() in Linux, Darwin, Windows and VxWorks platforms, besides WASI Libc output will call the callback function instead of libc vprintf() function to redirect the stdout output. For example, developer can define the callback function like below outside runtime lib:
|
||||
> Note: if the vprintf_callback function is provided by developer, the os_printf() and os_vprintf() in Linux, Darwin, Windows, VxWorks, Android and esp-idf platforms, besides WASI Libc output will call the callback function instead of libc vprintf() function to redirect the stdout output. For example, developer can define the callback function like below outside runtime lib:
|
||||
>
|
||||
> ```C
|
||||
> int my_vprintf(const char *format, va_list ap)
|
||||
|
||||
Reference in New Issue
Block a user