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

Function make_transient

src/store/store.c:119–126  ·  view source on GitHub ↗

Isolate the int-to-ptr cast that SQLITE_TRANSIENT expands to. A union type-pun avoids the performance-no-int-to-ptr diagnostic. */

Source from the content-addressed store, hash-verified

117/* Isolate the int-to-ptr cast that SQLITE_TRANSIENT expands to.
118 A union type-pun avoids the performance-no-int-to-ptr diagnostic. */
119static sqlite3_destructor_type make_transient(void) {
120 union {
121 uintptr_t i;
122 sqlite3_destructor_type fn;
123 } u;
124 u.i = (uintptr_t)CBM_NOT_FOUND;
125 return u.fn;
126}
127#define BIND_TRANSIENT (make_transient())
128
129static int bind_text(sqlite3_stmt *s, int col, const char *v) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected