A helper function to write a YAML file
| 55 | |
| 56 | /// A helper function to write a YAML file |
| 57 | static void SaveYAMLToFile(const char* filename, const ryml::NodeRef& node) |
| 58 | { |
| 59 | auto file = FileSystem::OpenCFile(filename, "w"); |
| 60 | ryml::emit_yaml(node, file); |
| 61 | std::fflush(file); |
| 62 | std::fclose(file); |
| 63 | } |
| 64 | |
| 65 | static auto last = std::chrono::time_point<std::chrono::system_clock>(); |
| 66 |
no outgoing calls
no test coverage detected