eris: require external definition of luai_writestring

This commit is contained in:
2021-09-07 14:56:42 -04:00
parent 2165bb578c
commit 924a5ec987
4 changed files with 27 additions and 3 deletions

View File

@@ -210,9 +210,8 @@
** avoids including 'stdio.h' everywhere.)
*/
#if defined(LUA_LIB) || defined(lua_c)
#include <stdio.h>
#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout))
extern void luai_writestring(const char *s, size_t len);
extern void luai_writeline();
#endif
/*