mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
SavePersistent: Safely save through temp file.
Also change SavePersistent and LoadPersistent to take StringRef.
This commit is contained in:
@@ -211,10 +211,9 @@ std::vector<ConnectionInfo> GetConnections();
|
||||
* Persistent Functions
|
||||
*/
|
||||
/* return error string, or nullptr if successful */
|
||||
const char* SavePersistent(const char* filename);
|
||||
const char* SavePersistent(StringRef filename);
|
||||
const char* LoadPersistent(
|
||||
const char* filename,
|
||||
std::function<void(size_t line, const char *msg)> warn);
|
||||
StringRef filename, std::function<void(size_t line, const char* msg)> warn);
|
||||
|
||||
/*
|
||||
* Utility Functions
|
||||
|
||||
Reference in New Issue
Block a user