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

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