MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / diag_set_output_paths

Function diag_set_output_paths

src/foundation/diagnostics.c:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static bool diag_set_output_paths(void) {
225 int snapshot = snprintf(g_diag_path, sizeof(g_diag_path), "%s/%s", g_diag_directory_path,
226 DIAG_SNAPSHOT_NAME);
227 int trajectory = snprintf(g_diag_ndjson_path, sizeof(g_diag_ndjson_path), "%s/%s",
228 g_diag_directory_path, DIAG_TRAJECTORY_NAME);
229 return snapshot > 0 && (size_t)snapshot < sizeof(g_diag_path) && trajectory > 0 &&
230 (size_t)trajectory < sizeof(g_diag_ndjson_path);
231}
232
233static void diag_directory_close(bool remove_directory) {
234#ifndef _WIN32

Callers 1

diag_directory_prepareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected