From: James B. <bi...@cs...> - 2006-02-25 22:28:58
|
In some code I'm wrapping there are several arrays of function pointers. This is kind of like a C's version of overloaded functions. double (*Load[TYPE_MAX+1])(const void *v); In swig 1.3.27 it creates code that looks like this: static int _wrap_Load_set(PyObject *_val) { { double (*)(void const *) *inp = 0; The compiler barfs on the (*) bit of the code. But at a more fundamental question how do I handle being able to call a different function based on an index lookup? Thanks, James |