Document special situation on free_bytes.

This commit is contained in:
Alejandro Cabeza Romero 2026-04-22 18:07:44 +02:00
parent 0fcc71745a
commit 0683b26c7c
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD

View File

@ -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;