50% off Nim in Action today
[https://twitter.com/d0m96/status/813491834064355329](https://twitter.com/d0m96/status/813491834064355329)
:)
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
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
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