From: Olivier Andrieu <andrieu@ijm.jussieu.fr>
To: lars@cymfony.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Ocaml -> C -> Ocaml callback problem
Date: Tue, 19 Nov 2002 23:16:08 +0100 [thread overview]
Message-ID: <15834.47144.266678.397466@karryall.dnsalias.org> (raw)
In-Reply-To: <15834.43801.889171.453764@gargle.gargle.HOWL>
You're using CAMLparam macros to register the arguments in the GC but
then you're not using CAMLreturn.
> CAMLprim value helper_doit()
> {
> CAMLparam0();
>
> callback2(closure_fun, copy_string("foo"), closure_data);
>
CAMLreturn(Val_unit);
> }
(same thing for the other function).
--
Olivier
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-11-19 22:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-19 21:20 Lars Nilsson
2002-11-19 22:16 ` Olivier Andrieu [this message]
2002-11-19 22:59 ` Lars Nilsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15834.47144.266678.397466@karryall.dnsalias.org \
--to=andrieu@ijm.jussieu.fr \
--cc=caml-list@inria.fr \
--cc=lars@cymfony.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).