mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT: FRC_ replacements
This commit is contained in:
committed by
Peter Johnson
parent
824f36f63a
commit
928ff20695
@@ -24,7 +24,7 @@ EventLoop::EventLoop() {}
|
||||
|
||||
void EventLoop::Bind(wpi::util::unique_function<void()> action) {
|
||||
if (m_running) {
|
||||
throw FRC_MakeError(err::Error,
|
||||
throw WPILIB_MakeError(err::Error,
|
||||
"Cannot bind EventLoop while it is running");
|
||||
}
|
||||
m_bindings.emplace_back(std::move(action));
|
||||
@@ -39,7 +39,7 @@ void EventLoop::Poll() {
|
||||
|
||||
void EventLoop::Clear() {
|
||||
if (m_running) {
|
||||
throw FRC_MakeError(err::Error,
|
||||
throw WPILIB_MakeError(err::Error,
|
||||
"Cannot clear EventLoop while it is running");
|
||||
}
|
||||
m_bindings.clear();
|
||||
|
||||
Reference in New Issue
Block a user