get rid of hooks for luai_writestring

This commit is contained in:
2021-10-21 13:49:43 -04:00
parent 6a95f6deb5
commit 2d08b44c03

View File

@@ -4,23 +4,6 @@
#include <ostream>
#include <iostream>
// This file provides these functions for lua.
//
// They direct all output to std::cout
//
extern "C" {
void luai_writestring(const char *s, size_t len);
void luai_writeline();
}
void luai_writestring(const char *s, size_t len) {
std::cout.write(s, len);
}
void luai_writeline() {
std::cout << std::endl;
std::cout.flush();
}
LuaDefine(string_isidentifier, "c") {
LuaArg str;