[wpimath] Move TrajectoryGenerator::SetErrorHandler definition to .cpp (#3920)

Otherwise this function causes linking errors when used on Windows.
This commit is contained in:
David Vo
2022-01-16 03:58:49 +11:00
committed by GitHub
parent 3b76de83eb
commit 792e735e08
2 changed files with 6 additions and 3 deletions

View File

@@ -141,3 +141,8 @@ Trajectory TrajectoryGenerator::GenerateTrajectory(
config.EndVelocity(), config.MaxVelocity(), config.MaxAcceleration(),
config.IsReversed());
}
void TrajectoryGenerator::SetErrorHandler(
std::function<void(const char*)> func) {
s_errorFunc = std::move(func);
}