[ox/std] Remove mc usage from std
This commit is contained in:
parent
9f78e2320f
commit
c1fa5dc287
16
deps/ox/src/ox/std/trace.cpp
vendored
16
deps/ox/src/ox/std/trace.cpp
vendored
@ -13,8 +13,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ox/mc/write.hpp>
|
|
||||||
|
|
||||||
#include "trace.hpp"
|
#include "trace.hpp"
|
||||||
|
|
||||||
namespace ox::trace {
|
namespace ox::trace {
|
||||||
@ -46,20 +44,6 @@ OutStream::OutStream(const char *file, int line, const char *ch, const char *msg
|
|||||||
|
|
||||||
OutStream::~OutStream() {
|
OutStream::~OutStream() {
|
||||||
gdblogger::logFunc(m_msg.file.c_str(), m_msg.line, m_msg.ch.c_str(), m_msg.msg.c_str());
|
gdblogger::logFunc(m_msg.file.c_str(), m_msg.line, m_msg.ch.c_str(), m_msg.msg.c_str());
|
||||||
#if defined(OX_USE_STDLIB)
|
|
||||||
if (OxPrintTrace) {
|
|
||||||
auto pipe = fopen(OxPrintTrace, "a");
|
|
||||||
if (pipe) {
|
|
||||||
constexpr std::size_t buffLen = 1024;
|
|
||||||
std::size_t size = 0;
|
|
||||||
uint8_t buff[buffLen];
|
|
||||||
writeMC(buff, buffLen, &m_msg, &size);
|
|
||||||
|
|
||||||
//write(pipe, buff, size);
|
|
||||||
fclose(pipe);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user