Re: GTK 3.20 Nim wrapper

2016-12-26 Thread dom96
50% off Nim in Action today [https://twitter.com/d0m96/status/813491834064355329](https://twitter.com/d0m96/status/813491834064355329) :)

Re: Getting a segfault when testing my C wrapper on OS X

2016-12-26 Thread xomachine
This behaviour is very odd indeed. The pointer received from the function is not **nil**, but it is not valid though. Is it possible situation if the stbi_load function would return the actual cuchar(s) instead of the pointer? You might also want to check the numeric representation of the return

Re: GTK 3.20 Nim wrapper

2016-12-26 Thread Stefan_Salewski
I have just uploaded the initial release of nim-rsvg: [https://github.com/ngtk3/nim-rsvg](https://github.com/ngtk3/nim-rsvg) The API is really tiny, so it was not much work making the wrapper. I have decided to remove the Rsvg prefix from data types, as we generally do. If that should give too

Re: Getting a segfault when testing my C wrapper on OS X

2016-12-26 Thread def_pri_pub
It shouldn't be an issue with the test suite. I added this line right after the let data = stbi_load(... call echo x echo y echo channels_in_file echo data.repr And it gave me this output: 2 2 4 Traceback (most recent call last) tests.n