stubs and callbacks


I'm working on Caml bindings for gtk+.

I have problems with callbacks.
I'd like to use gtk_signal_connect to bind a signal to a generic function
with a specific parameter.

I used:
value mlgtk_callback_exec(GtkObject *obj, value x)

gtk_signal_connect(object, name, mlgtk_callback_exec, SOME_VALUE);

Will x be equal to SOME_VALUE or to a pointer on SOME_VALUE?

It seems neither of those is the case...


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]