Deprecate frc/WPILib.h (#1779)

It drastically increases compile times and is bad style. C++ users
should be including what they use. We don't necessarily have to remove
WPILib.h, but it should at least be deprecated.
This commit is contained in:
Tyler Veness
2019-07-30 00:41:14 -07:00
committed by Peter Johnson
parent 823174f30a
commit dd43109596
2 changed files with 10 additions and 3 deletions

View File

@@ -7,6 +7,15 @@
#pragma once
// clang-format off
#ifdef _MSC_VER
#pragma message "warning: Including this header drastically increases compilation times and is bad style. Include only what you use instead."
#else
#warning "Including this header drastically increases compilation times and is bad style. Include only what you use instead."
#endif
// clang-format on
#include <cameraserver/CameraServer.h>
#include <vision/VisionRunner.h>