mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "util/standardout.h"
|
||||
|
||||
namespace RBX { namespace Test {
|
||||
|
||||
class CaptureErrorLogs
|
||||
{
|
||||
rbx::signals::scoped_connection connection;
|
||||
static void onMessage(const RBX::StandardOutMessage& message)
|
||||
{
|
||||
BOOST_CHECK_MESSAGE(message.type != RBX::MESSAGE_ERROR, message.message);
|
||||
// ??? BOOST_WARN_MESSAGE(message.type != RBX::MESSAGE_WARNING, message.message);
|
||||
}
|
||||
public:
|
||||
CaptureErrorLogs()
|
||||
{
|
||||
connection = RBX::StandardOut::singleton()->messageOut.connect(&CaptureErrorLogs::onMessage);
|
||||
}
|
||||
};
|
||||
|
||||
}}
|
||||
Reference in New Issue
Block a user