From c3da074f7bb668976fdf43e53d45906e5eb20721 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 27 Jan 2021 22:42:31 -0500 Subject: [PATCH] Update foreign.md --- docs/api/cyclone/foreign.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/api/cyclone/foreign.md b/docs/api/cyclone/foreign.md index e3dc9aae..3f1e6618 100644 --- a/docs/api/cyclone/foreign.md +++ b/docs/api/cyclone/foreign.md @@ -75,10 +75,8 @@ Scheme | C Useful notes: - Use `opaque` if you need to handle any kind of C pointer. - Use `string` to handle C `const char*` (`symbol` is strictly used to represent Scheme symbols). -- `thread-data` is a special type used to pass the current thread's `gc_thread_data` instance to a C function. These objects are passed implicitly when making a Scheme function call. +- `thread-data` is a special type used to pass the current thread's `gc_thread_data` instance to a C function. These objects are passed implicitly when making a Scheme function call. For example: - (c-define sub-big-nums bignum "sub_big_nums" thread-data bignum bignum) - (sub-big-nums - 999999999999999999999999 - 222222222222222222222222)) + (c-define sub-big-nums bignum "sub_big_nums" thread-data bignum bignum) + (sub-big-nums 999999999999999999999999 222222222222222222222222))