Re: [Cython] [Pyrex] pyrex problems
Greg Ewing <greg.ewing-F+z8Qja7x9Xokq/[email protected]>
| Newsgroups | gmane.comp.python.cython.devel,gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 21, 2008 at 3:27 PM, Marco Zanger <[email protected] <mailto:[email protected]>> wrote: > ctypedef struct cGCoptimization "GCoptimization": > EnergyType expansionIter "expansion"(int max_num_iterations) > You need to declare the member functions as function pointers, e.g. ctypedef struct cGCoptimization "GCoptimization": EnergyType (*expansionIter "expansion")(int max_num_iterations) -- Greg