Closed phongphan closed 8 years ago
This does indeed look correct to me. I think most of the time, there's another function that people call along with find-c-function
that sets up types and perhaps that's why this wasn't noticed?
Thanks!
Thanks!
Yes, calling constrain-c-function
does fixed the issue too (at least this case). I think maybe they call it along with find-c-function
all the time. Or maybe the binding generators did it for them.
The binding generator does indeed do that!
aside: what is the binding generator that you are talking about? is there a working version of melange that generates mindy specific code ?
The version of melange
within this repository doesn't work. A lot of updates have happened since this ancient version to handle typical OS headers of today.
The working version of melange
can be found in https://github.com/dylan-lang/melange/
It doesn't yet have full mindy support. I have a local patch that I had been working on that adds function bindings. I'm not sure why I didn't push it yet as it has been a while since I looked at it.
Hello,
I found this while trying to create a wrapper. Not sure it's valid. The
result_types
seems to expected a list. It crashes when callingconvert_c_object
.snippet:
test.c:
compiler: mingw64 on Windows 7