mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 14:49:18 +02:00
Adding sexp_bytes_maybe_null_data macro for bytevector FFI support.
This commit is contained in:
parent
8d636f3ca5
commit
d1eeea1a66
1 changed files with 1 additions and 0 deletions
|
@ -880,6 +880,7 @@ SEXP_API sexp sexp_make_unsigned_integer(sexp ctx, sexp_luint_t x);
|
|||
|
||||
#define sexp_bytes_length(x) (sexp_field(x, bytes, SEXP_BYTES, length))
|
||||
#define sexp_bytes_data(x) (sexp_field(x, bytes, SEXP_BYTES, data))
|
||||
#define sexp_bytes_maybe_null_data(x) (sexp_not(x) ? NULL : sexp_bytes_data(x))
|
||||
|
||||
#define sexp_string_size(x) (sexp_field(x, string, SEXP_STRING, length))
|
||||
#if SEXP_USE_PACKED_STRINGS
|
||||
|
|
Loading…
Add table
Reference in a new issue