mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
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:
committed by
Peter Johnson
parent
823174f30a
commit
dd43109596
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user