mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace wpi;
|
||||
|
||||
namespace {
|
||||
struct RunningSetter {
|
||||
@@ -22,7 +22,7 @@ struct RunningSetter {
|
||||
|
||||
EventLoop::EventLoop() {}
|
||||
|
||||
void EventLoop::Bind(wpi::unique_function<void()> action) {
|
||||
void EventLoop::Bind(wpi::util::unique_function<void()> action) {
|
||||
if (m_running) {
|
||||
throw FRC_MakeError(err::Error,
|
||||
"Cannot bind EventLoop while it is running");
|
||||
@@ -32,7 +32,7 @@ void EventLoop::Bind(wpi::unique_function<void()> action) {
|
||||
|
||||
void EventLoop::Poll() {
|
||||
RunningSetter runSetter{m_running};
|
||||
for (wpi::unique_function<void()>& action : m_bindings) {
|
||||
for (wpi::util::unique_function<void()>& action : m_bindings) {
|
||||
action();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user