From 2d08b44c03588d7b077f43c7b27587205a1c219b Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Thu, 21 Oct 2021 13:49:43 -0400 Subject: [PATCH] get rid of hooks for luai_writestring --- luprex/core/cpp/pprint.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/luprex/core/cpp/pprint.cpp b/luprex/core/cpp/pprint.cpp index 0db59fb9..fdfea46e 100644 --- a/luprex/core/cpp/pprint.cpp +++ b/luprex/core/cpp/pprint.cpp @@ -4,23 +4,6 @@ #include #include -// 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;