aboutsummaryrefslogtreecommitdiff
path: root/lib/lua/src/ldump.c
diff options
context:
space:
mode:
authorv-rob <31123645+v-rob@users.noreply.github.com>2019-06-27 05:40:49 -0700
committerrubenwardy <rw@rubenwardy.com>2019-06-27 13:40:49 +0100
commit0 files changed, 0 insertions, 0 deletions
"hl kwd">LogOutputBuffer() { log_remove_output(this); } virtual void printLog(const std::string &line) { m_buf.push(line); } std::string get() { if(empty()) return ""; std::string s = m_buf.front(); m_buf.pop(); return s; } bool empty() { return m_buf.empty(); } private: std::queue<std::string> m_buf; }; #endif