eris: require external definition of luai_writestring
This commit is contained in:
@@ -83,7 +83,14 @@
|
||||
#endif
|
||||
|
||||
|
||||
void luai_writestring(const char *s, size_t len) {
|
||||
fwrite((s), sizeof(char), (len), stdout);
|
||||
}
|
||||
|
||||
void luai_writeline() {
|
||||
fwrite("\n", sizeof(char), 1, stdout);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
static lua_State *globalL = NULL;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user