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:
Arnim Läuger 2017-04-20 01:40:53 +02:00 committed by Johny Mattsson
parent 8ee61c51cc
commit 7386f342b5
1 changed files with 1 additions and 1 deletions

View File

@ -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)