Files
allwpilib/wpilibc/shared/src/Commands/PrintCommand.cpp
Tyler Veness 9d93820717 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().
2017-06-30 19:33:43 -07:00

20 lines
780 B
C++

/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2011-2017. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/PrintCommand.h"
#include "llvm/raw_ostream.h"
using namespace frc;
PrintCommand::PrintCommand(const std::string& message)
: InstantCommand("Print \"" + message + "\"") {
m_message = message;
}
void PrintCommand::Initialize() { llvm::outs() << m_message << "\n"; }