ESP32: Use fwrite() instead of printf() for printing strings from Lua. (#1919)
* use fwrite() instead of printf() for printing strings from Lua Fixes #1914.
This commit is contained in:
parent
8ee61c51cc
commit
7386f342b5
|
@ -331,7 +331,7 @@ extern int readline4lua(const char *prompt, char *buffer, int length);
|
||||||
** avoids including 'stdio.h' everywhere.)
|
** avoids including 'stdio.h' everywhere.)
|
||||||
*/
|
*/
|
||||||
#if !defined(LUA_USE_STDIO)
|
#if !defined(LUA_USE_STDIO)
|
||||||
#define luai_writestring(s, l) printf(s)
|
#define luai_writestring(s, l) fwrite(s, 1, l, stdout)
|
||||||
#define luai_writeline() puts("")
|
#define luai_writeline() puts("")
|
||||||
#endif // defined(LUA_USE_STDIO)
|
#endif // defined(LUA_USE_STDIO)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue