Start using the new FRC compiler define (#797)

Remove all definitions from the MockData headers when in simulation mode.
Add a constexpr IsReal and IsSimulation in RobotBase.
This commit is contained in:
Thad House
2017-12-08 22:47:21 -08:00
committed by Peter Johnson
parent b42285fddd
commit aa4f0ef4f8
24 changed files with 102 additions and 0 deletions

View File

@@ -7,6 +7,8 @@
#pragma once
#ifndef __FRC_ROBORIO__
#include <memory>
#include "MockData/NotifyListenerVector.h"
@@ -65,3 +67,5 @@ std::shared_ptr<hal::ConstBufferListenerVector> CancelCallback(
void InvokeCallback(
std::shared_ptr<hal::ConstBufferListenerVector> currentVector,
const char* name, const uint8_t* buffer, int32_t count);
#endif