|
From: | Kon Lovett |
Subject: | Re: [Chicken-users] How to use CHICKEN_apply function? Is there an example? |
Date: | Fri, 30 Aug 2019 07:36:08 -0700 |
none that i know. but the general idea is C_word args = C_list( … ); C_word proc = C_closure( … ); /* example after http://wiki.call-cc.org/man/5/C%20interface#c_closure */ C_word result; if (CHICKEN_apply( proc, args, &result )) { /* do something with result */ } else { char msg[ 1024 ]; CHICKEN_get_error_message( msg, sizeof msg ); /* do something with error msg */ } do not want to speak for others but the feeling i get is that CHICKEN is considered a little heavy for embedding. there may not be a lot of experience. btw, the source might help. CHICKEN_apply, for example, is defined in eval.scm.
|
[Prev in Thread] | Current Thread | [Next in Thread] |