mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Replaced STL streams with LLVM's raw_ostream (#344)
std::cout and std::printf were replaced with llvm::outs() and std::cerr was replaced with llvm::errs().
This commit is contained in:
committed by
Peter Johnson
parent
c57a7f0a41
commit
9d93820717
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "simulation/SimDigitalInput.h"
|
||||
|
||||
#include "llvm/raw_ostream.h"
|
||||
#include "simulation/MainNode.h"
|
||||
|
||||
using namespace frc;
|
||||
@@ -14,7 +15,7 @@ using namespace frc;
|
||||
SimDigitalInput::SimDigitalInput(std::string topic) {
|
||||
sub = MainNode::Subscribe("~/simulator/" + topic, &SimDigitalInput::callback,
|
||||
this);
|
||||
std::cout << "Initialized ~/simulator/" + topic << std::endl;
|
||||
llvm::outs() << "Initialized ~/simulator/" + topic << "\n";
|
||||
}
|
||||
|
||||
bool SimDigitalInput::Get() { return value; }
|
||||
|
||||
Reference in New Issue
Block a user