mirror of
https://github.com/logos-blockchain/logos-blockchain-circuits.git
synced 2026-05-18 23:39:47 +00:00
Document special situation on free_bytes.
This commit is contained in:
parent
0fcc71745a
commit
0683b26c7c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user