From 0683b26c7cec5b03b1fbb0f864d300e590180d79 Mon Sep 17 00:00:00 2001 From: Alejandro Cabeza Romero Date: Wed, 22 Apr 2026 18:07:44 +0200 Subject: [PATCH] Document special situation on free_bytes. --- src/types.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/types.hpp b/src/types.hpp index da24e25..aa008a8 100644 --- a/src/types.hpp +++ b/src/types.hpp @@ -74,6 +74,9 @@ typedef struct WitnessInput { const char* inputs_json; } WitnessInput; +/// Static inline is inlined at every call site and cannot be linked, so each language binding must reimplement it. +/// This is the best-effort approach for now. +/// TODO: Make this an exported symbol so Rust (and other callers) can link against a single canonical definition. static inline void free_bytes(Bytes* bytes) { if (bytes == NULL) return;