mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
std::cout and std::printf were replaced with llvm::outs() and std::cerr was replaced with llvm::errs().
20 lines
780 B
C++
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"; }
|