/*----------------------------------------------------------------------------*/ /* 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. */ /*----------------------------------------------------------------------------*/ #ifndef NT_VALUE_INTERNAL_H_ #define NT_VALUE_INTERNAL_H_ #include #include #include "llvm/StringRef.h" #include "ntcore_c.h" namespace nt { class Value; void ConvertToC(const Value& in, NT_Value* out); std::shared_ptr ConvertFromC(const NT_Value& value); void ConvertToC(llvm::StringRef in, NT_String* out); inline llvm::StringRef ConvertFromC(const NT_String& str) { return llvm::StringRef(str.str, str.len); } } // namespace nt #endif // NT_VALUE_INTERNAL_H_