kkaempf / swig-issues

Issues from SWIG (testing)
0 stars 0 forks source link

tcl defined callbacks #2

Open SwigAtSF opened 11 years ago

SwigAtSF commented 11 years ago

SWIG doesn't know how to map a scripting language function into a C callback. (from SWIG-1.3.11/Doc/Manual/SWIG.html).

It would be nice to allow tclsh programmers to define tcl functions in the normal way, register them as callback functions (given that the typemaps match), and have them invoked as event handlers from the loaded shared library.

SwigAtSF commented 11 years ago

Logged In: YES user_id=302938

I would like to see this also, to create a macro extension that fires a TCL callback on a keyboard or mouse hook.

One way to implement this might be to pass the C code a pointer to the TCL proc, which I think is possible. (?)