krakjoe/jitfu — pull request #10 by DaveRandom (2014-09-15 13:37:54+00:00)
Title: Disable dump() methods on Windows

The `->dump()` methods cannot currently work on Windows. The libjit functions they wrap accept a `FILE *` as the output mechanism, and due to the fact that the libjit.dll on which Windows builds are based is built with mingw, these cannot currently be called sanely.

In order to pass file pointers across DLL boundaries, the same C runtime must be used. See http://msdn.microsoft.com/en-us/library/ms235460.aspx for more information. If a sane libjit.dll can be built with MSVC at some stage, these functions can potentially be enabled on Windows.

I have elected to throw an exception rather than disabling the functions completely, as this allows for cleaner userland handling (IMO).