mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Remove wpiutil and update to the new build system (#210)
This commit is contained in:
committed by
Peter Johnson
parent
f43675e2bd
commit
5df7463663
9
src/main/native/cpp/tables/ITableListener.cpp
Normal file
9
src/main/native/cpp/tables/ITableListener.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "tables/ITableListener.h"
|
||||
|
||||
#include "ntcore_c.h"
|
||||
|
||||
void ITableListener::ValueChangedEx(ITable* source, llvm::StringRef key,
|
||||
std::shared_ptr<nt::Value> value,
|
||||
unsigned int flags) {
|
||||
ValueChanged(source, key, value, (flags & NT_NOTIFY_NEW) != 0);
|
||||
}
|
||||
19
src/main/native/cpp/tables/TableKeyNotDefinedException.cpp
Normal file
19
src/main/native/cpp/tables/TableKeyNotDefinedException.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) FIRST 2015. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "tables/TableKeyNotDefinedException.h"
|
||||
|
||||
TableKeyNotDefinedException::TableKeyNotDefinedException(llvm::StringRef key)
|
||||
: msg("Unknown Table Key: ") {
|
||||
msg += key;
|
||||
}
|
||||
|
||||
const char* TableKeyNotDefinedException::what() const NT_NOEXCEPT {
|
||||
return msg.c_str();
|
||||
}
|
||||
|
||||
TableKeyNotDefinedException::~TableKeyNotDefinedException() NT_NOEXCEPT {}
|
||||
Reference in New Issue
Block a user